The simplest way to add C (C++) code in R, that I know is by creating a package ( even if you are not planning on distributing it). See 'Writing R Extensions' manual (http://cran.r-project.org/manuals.html) for details. Download source codes of packages for more examples, many of them will have .c files. See also FAQ http://cran.r-project.org/bin/windows/base/rw-FAQ.html#Building-from-Sou rce .
Jarek Tuszynski -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of K.A. Sent: Wednesday, March 01, 2006 7:14 AM To: [email protected] Subject: [R] C-Code in R (running Windows) Hello, I need to include C (or C++)-Code in R. I'm searching for a tutorial, how to do this. It is only a very small algorith (one function). Using google, I read somethig about including dll-Files and so on (on windows). Is there no possibility to include a C-File directly?!? -- View this message in context: http://www.nabble.com/C-Code-in-R-%28running-Windows%29-t1205196.html#a3 182004 Sent from the R help forum at Nabble.com. ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
