Hello everyone, Trying to comprehend code of an R package, I encountered the problem that the interesting part of the function I'm inspecting is written in C-Code and called by ".C("somename", ....)". Now I can't inspect the C-Code the function is calling since I can't find it in the folder of the package. Does someone know, where the corresponding C-Code ist stored, so I could inspect it and comprehend what is happening? Thank you very much in advance! Regards Roman -- View this message in context: http://r.789695.n4.nabble.com/Inspecting-C-code-in-an-R-package-tp3590596p3590596.html Sent from the R help mailing list archive at Nabble.com.
The easiest thing to do is download the source package from your local CRAN mirror. That will contain all the R and other code. Sarah On Sat, Jun 11, 2011 at 10:50 AM, Layman123 <romanhornung at web.de> wrote:> Hello everyone, > > Trying to comprehend code of an R package, I encountered the problem that > the interesting part of the > function I'm inspecting is written in C-Code and called by ".C("somename", > ....)". Now I can't inspect the C-Code the function is calling since I can't > find it in the folder of the package. > Does someone know, where the corresponding C-Code ist stored, so I could > inspect it and comprehend what is happening? > > Thank you very much in advance! > > Regards > Roman >-- Sarah Goslee http://www.functionaldiversity.org
Presumably in the source code of the package (something.tar.gz). Follow the posting guidelines if you want further assistance. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. Layman123 <romanhornung@web.de> wrote: Hello everyone, Trying to comprehend code of an R package, I encountered the problem that the interesting part of the function I'm inspecting is written in C-Code and called by ".C("somename", ....)". Now I can't inspect the C-Code the function is calling since I can't find it in the folder of the package. Does someone know, where the corresponding C-Code ist stored, so I could inspect it and comprehend what is happening? Thank you very much in advance! Regards Roman -- View this message in context: http://r.789695.n4.nabble.com/Inspecting-C-code-in-an-R-package-tp3590596p3590596.html Sent from the R help mailing list archive at Nabble.com. _____________________________________________ R-help@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. [[alternative HTML version deleted]]