[R] findInterval in compiled code.

2004-09-19 Thread Toby.Patterson
Hi all, I am writing some C code where I want to use the findInterval function documented in Writing R extensions/Utility functions. i.e. the C-version not the R version. It all compiles but the shared library is causing seg-faults and I'm obviously stuffing something up. Has anyone got any

[R] R CMD SHLIB setup problem...

2004-09-13 Thread Toby.Patterson
All, When I try and compile a shared library (on WinXP) I get the following error: E:\data\projR CMD SHLIB toy_dll.c Makevars:1: *** missing separator. Stop. Has someone else had this error and fixed it? This code compiles and works fine on Linux (fedora core 2). Everything was working

RE: [R] R CMD SHLIB setup problem...

2004-09-13 Thread Toby.Patterson
I've compared my Makevars to someone else's and we both have the same thing: CFLAGS+= -I$(RHOME)/src/gnuwin32/graphapp So I assume this is correct? (And the compiler is definitely GNU make). When I tried to recompile another bit of C code I got the following error: make: *** No rule to make

[R] date axes and formats in levelplot

2004-08-10 Thread Toby.Patterson
Hi all (and particularly Deepayan), A while back Deepayan helped me with the query in the text below (thanks again). Specifically it was about changing the way that dates plotted on the axes of lattice plots. While this works using xyplot, everything comes apart when I use levelplot. The axis

[R] date Axes and formats in lattice plots

2004-07-04 Thread Toby.Patterson
All, I have some data of animal movements that I'm plotting using xyplot() from lattice. I want to have the date (class POSIXct object) on the Y-axis and the animals longitude on X-axis. Eg. xyplot(date ~ longitude, groups = animal, data = my.data) with data like: animal ptt year

[R] Turning windows screen buffering on and off

2004-04-15 Thread Toby.Patterson
All, Does anyone know if there is an option I can set to turn screen-buffered output on and off with the win32 rgui? (Apart from the point and click method). I am running some simulations where it is useful to watch output but it gets mildly tiresome having to manually switch things on and

RE: [R] Turning windows screen buffering on and off

2004-04-15 Thread Toby.Patterson
I meant via a function or something like: options( buffered.output = FALSE) Sorry, I should have made that clearer. Cheers Toby -Original Message- From: Roger D. Peng [mailto:[EMAIL PROTECTED] Sent: Friday, April 16, 2004 1:11 PM To: Patterson, Toby (Marine, Hobart) Cc: [EMAIL

RE: [R] mlocal/mtrace inside a loop

2004-03-25 Thread Toby.Patterson
Look at ?mtrace for a start... And probably you need to look at the function go() -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fred J. Sent: Thursday, March 25, 2004 8:16 PM To: r help Subject: [R] mlocal/mtrace inside a loop Hello I need some

RE: [R] lines and dates

2004-02-04 Thread Toby.Patterson
As per the stuff on the list earlier, it looks like you probably need to convert the POSIXlt's to POSIXct's Try: ?as.POSIXct -Original Message- From: Jean Eid [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 11:39 AM To: [EMAIL PROTECTED] Subject: [R] lines and dates

[R] hdf library for windows

2003-11-30 Thread Toby.Patterson
Hi, Is there a version of the hdf library for windows? Cheers Toby __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Calculating great circle distances

2003-11-25 Thread Toby.Patterson
Hi, Has anyone got any R code (or are there any packages) that calculates the great circle distance between two geographical (lat, lon) positions? Cheers Toby Patterson Pelagic Ecosystems Research Group CSIRO Marine Research Email: [EMAIL PROTECTED]

[R] Automatic differentiation of compiled code.

2003-10-06 Thread Toby.Patterson
Hi all, I wondered if anyone had used automatic differentiation libraries (e.g ADIC/ADOL etc.) in conjunction with R? I have a C shared library that calculates a likelihood within a wrapper function that gets minimized by optim. This works OK but it would be nice to also have a function that

[R] ODBC Oracle access

2003-08-26 Thread Toby.Patterson
Hi all, I'm having trouble connecting to an oracle database using RODBC under winXP. Unfortunately I can't really send a reproducable error as the initial call to odbcConnect seems to hangs R and I have to kill the session. I have been using RODBC to sucessfully connect to an MS Access DB that