Displaying 1 result from an estimated 1 matches for "orhello".
Did you mean:
rhello
2011 Jun 25
2
calling R from C
I read R extensions on calling R within c code. I am on windows vista, cygwin and R-2.13.0.I can compile & link the c code with following commands$gcc -I/cygdrive/c/Progra~1/R/R-2.13.0/include -c -ggdb Rhello.c
gcc-L/cygdrive/c/Progra~1/R/R-2.13.0/bin/i386 -oRhello Rhello.o -lR
However I cant run the resulting .exe file with following command
LD_LIBRARY_PATH=/cygdrive/c/Progra~1/R/R-2.13.0/bin R_HOME=/cygdrive/c/Progra
~1/R/R-2.13.0 ./Rhello.exe
I get a pop up window and it just hangs when I try to run exe file. I assume calling R via c program on cygwin/wind...