[Rd] free variable, built-in R functions

2007-03-19 Thread Jiangtian Li
Hi, I have one question about built-in R functions. I am looking into interprocedural analysis and since R supports "free variable", it would become complicated if free variable is read inside a function. It is uncommon and probably not good to read free variables when implementing R functions. I

[Rd] problem in linking to libR.so with R 2.5.0

2007-11-06 Thread Jiangtian Li
Dear All, I tried to write a C++ program that uses R internals and I encounter "undefined reference" error when linking to libR.so. Here is an small example of the program test.cpp: extern "C" { #include #include int main(int argc, char** argv) { R_IoBufferInit(&R_ConsoleIob); return 0; }