Dear R users, I want to call C function from R. I follow the following instruction using the example of foo.c http://www.stat.umn.edu/~charlie/rc/ I save the foo.c in my current directory. Is that right? After I enter the command R CMD SHLIB foo.c, I get the following message Error: unexpected symbol in "R cmd" Any suggestion is appreciated. Chun
On 01/03/2009 7:23 PM, Wang Chun wrote:> Dear R users, > > I want to call C function from R. I follow the following instruction using the example of foo.c > http://www.stat.umn.edu/~charlie/rc/ > > I save the foo.c in my current directory. Is that right? After I enter the command R CMD SHLIB foo.c, I get the following message > > > > Error: unexpected symbol in "R cmd" > > > > Any suggestion is appreciated.It looks as though you did that within R. The R CMD SHLIB command is a shell command, run outside of R. Duncan Murdoch
Hi, Duncan Murdoch... i m facing same pro here.. n i m a very new user for R... i m just start using it now for my final year project... i wan to know how to run outside R??? i have no idea about it... can u help me??? appreciate for your helping... -- View this message in context: http://r.789695.n4.nabble.com/a-very-basic-question-calling-c-function-from-R-tp883154p2714989.html Sent from the R help mailing list archive at Nabble.com.
On 27/09/2010 2:45 AM, teetee wrote:> Hi, Duncan Murdoch... > > i m facing same pro here.. > n i m a very new user for R... > i m just start using it now for my final year project... > i wan to know how to run outside R??? > i have no idea about it... > can u help me??? > appreciate for your helping...You should ask your instructor. Duncan Murdoch