Skip to content
Prev 67131 / 398506 Next

Introduce a new function in a package?

I tried making a package on windows and got a "make" error, so I was
happy I was able to get source("mystuff.R") to work in .First(). 
Since my utility functions are pretty simple and few in number, this
is good enough for me for now.

But I got a curious error.  I can submit the command
"memory.size(3*1024)" at the command line and it works fine (I
modified my header file to make R \LARGEADDRESSAWARE), but if I put
that same command in .First R says it can't find a function
memory.size in the environment.  Can anyone recommend a cause and/or
work around?

Thanks,

Roger
On Apr 6, 2005 11:24 AM, Josef Eschgfaeller <esg at felix.unife.it> wrote: