Dear R list, I have a package downloaded and looked up a function in there. Now I find that it uses C code (.C call) to do part of its job. However, when I wanted to look that part up by using getAnywhere() I was told that no object of that name could be found. Then I tried typing C.(" funct.name") which only caused R to crash. Is there any way to look up the function? I'm not an expert and don't understand much of the technicalities mentioned in the Writing-R-extensions manual. I only would like to see how the method I think is used is actually implemented. I use R.2.13.1, Windows 7. The package I'm referring to is adehabitatLT, function acfang.ltraj -> res <- .C("acfangl",...) Many thanks in advance! Jacqueline [[alternative HTML version deleted]]
R. Michael Weylandt <michael.weylandt@gmail.com>
2012-Feb-08 18:01 UTC
[R] get information on .C code
It's compiled code so you can't view it in R. Download the source from CRAN (in your browser, not through R), decompress it, and look through the src/ directory with your favorite text editor. Michael On Feb 8, 2012, at 8:51 AM, "J. Augusiak" <jaugusiak at googlemail.com> wrote:> Dear R list, > > I have a package downloaded and looked up a function in there. Now I find > that it uses C code (.C call) to do part of its job. > > However, when I wanted to look that part up by using getAnywhere() I was > told that no object of that name could be found. Then I tried typing C.(" > funct.name") which only caused R to crash. > > Is there any way to look up the function? > > I'm not an expert and don't understand much of the technicalities mentioned > in the Writing-R-extensions manual. I only would like to see how the > method I think is used is actually implemented. > > I use R.2.13.1, Windows 7. The package I'm referring to is adehabitatLT, > function acfang.ltraj -> res <- .C("acfangl",...) > > Many thanks in advance! > > Jacqueline > > [[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.
Seemingly Similar Threads
- {R} How to extract correctly from vector?
- Help with creating date as POSIXct
- My very first loop!! I failed. May I have some start-up aid?
- My very first loop!! I failed. May I have some start-up aid?
- Trouble with first passage time analysis using adehabitatLT