Hello, All! I have function which is written in C, the function uses other functions also builded bu me. Now I need to use the function to build R function. My questions are: 1. How can I include libraries (for example, iomanip, sstream, tcl.h)? 2. Should I put other function to the separate file and then include the file? Thanks All :) Olga [[alternative HTML version deleted]]
Hi! Olga K. Kamneva wrote:> Hello, All! > > I have function which is written in C, the function uses other functions > also builded bu me. Now I need to use the function to build R function. > My questions are: > 1. How can I include libraries (for example, iomanip, sstream, tcl.h)? > 2. Should I put other function to the separate file and then include the > file?this document is not very recent but it helped me awhile ago: http://www.biostat.jhsph.edu/~rpeng/docs/interface.pdf Best, Roland
You did read the "Writing R Extensions" manual before posting, did you? Le 13 sept. ? 01:05, Olga K. Kamneva a ?crit :> Hello, All! > > I have function which is written in C, the function uses other > functions > also builded bu me. Now I need to use the function to build R > function. > My questions are: > 1. How can I include libraries (for example, iomanip, sstream, tcl.h)? > 2. Should I put other function to the separate file and then > include the > file? > > Thanks All :) > Olga > > [[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.
"Olga K. Kamneva" <kamushkina at gmail.com> writes:> Hello, All! > > I have function which is written in C, the function uses other functions > also builded bu me. Now I need to use the function to build R function. > My questions are: > 1. How can I include libraries (for example, iomanip, sstream, tcl.h)? > 2. Should I put other function to the separate file and then include the > file?This is a question more appropriate for the R-devel list. I would recommend reading over the Writing R Extensions Manual and then taking a looks at some of the CRAN or Bioconductor packages which contain native code. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center BioC: http://bioconductor.org/ Blog: http://userprimary.net/user/