Hi, everyone, I need to use a C library. But since I have little experience in C, I want to call this C library in R and program the rest in R. Does anyone know how to do this? Thanks, Cindy [[alternative HTML version deleted]]
On Sat, Aug 23, 2008 at 3:56 PM, cindy Guo <cindy.guo3 at gmail.com> wrote:> Hi, everyone, > > I need to use a C library. But since I have little experience in C, I want > to call this C library in R and program the rest in R. Does anyone know how > to do this?Yes, I do. Assuming that your next question will be "How do you do this?" I will answer that one too. You begin by reading the manual "Writing R Extensions". If, as you indicate, you don't know much about programming in C that manual will be a tough read, but that is the nature of the beast. You want to do something complicated and you will need to learn quite a bit to be able to do it.
Hi Cindy, Take a look at the following. This should help get you started. http://www.stat.umn.edu/~charlie/rc/ rcoder cindy Guo wrote:> > Hi, everyone, > > I need to use a C library. But since I have little experience in C, I want > to call this C library in R and program the rest in R. Does anyone know > how > to do this? > > Thanks, > > Cindy > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- View this message in context: http://www.nabble.com/how-to-call-a-C-library-in-R-tp19125202p19126668.html Sent from the R help mailing list archive at Nabble.com.