Vineeth Mohan
2012-Dec-05 07:13 UTC
[R] Global variable in the C code used to create R extension
Hi ,
I am writing a function in C and i wish to call it from R.
Thanks to this tutorial , this is easily possible -
http://www.nceas.ucsb.edu/scicomp/usecases/CreateRPackageWithC
Now , i have a server written in R which listens on a port for requests and
process the requests.
Now what i need is to load a large amount of data in startup of the server.
And later this data should be available to any part of the R.
So basically i want to maintain a global pointer to the data , i have
loaded and access them globally from the C code within the R extension
which is executed from any wehre in the code.
How can i achieve this.
Thanks
Vineeth
[[alternative HTML version deleted]]
