Skip to content
Prev 106416 / 398513 Next

writing R extension

AA
Hi all,
I am dealing with the same issue here and I was wondering whether it would be possible to just save
the R compliled function objects in a directory and just attach the directory to the search path.
(I am using R2.4.0+ESS+Xemacs in windows XP). 

Thanks.
AA.


----- Original Message ----
From: Sarah Goslee <sarah.goslee at gmail.com>
To: michele de meo <vbarstat at gmail.com>
Cc: r-help at stat.math.ethz.ch
Sent: Wednesday, December 20, 2006 12:09:47 PM
Subject: Re: [R] writing R extension

For a very simple library, you really only need chapter 1 of the manual
on writing R extensions, which even describes the "helper functions"
that take some of the work out of making a "proper" package.

If that's still too complex, you could also save your function to a file
and load it as needed with source(). That will give the user the
same effect.

source("/path/to/my/stuff/myfiles.R")

Since you didn't tell us OS or anything else about your system,
it's hard to be more specific.

Sarah
On 12/20/06, michele de meo <vbarstat at gmail.com> wrote: