I've written a handout that talks about calling C from R and
calling R from C using both the .C and .Call methods. (It also
shows similar information for matlab -- my apologies.) You
can find it here:
http://www.stat.berkeley.edu/classes/s243/calling.pdf
- Phil Spector
Statistical Computing Facility
Department of Statistics
UC Berkeley
spec...@stat.berkeley.edu
On Wed, 17 Mar 2010, Sharpie wrote:
TheSavageSam wrote:
Thanks for the huge help. I have learned a lot and been able to start
writing my own code.
If you could give me a reference(a link, name of a book, etc.) to a good
manual of how to use and manipulate and use SEXP variables in C
(considering creating R libraries) it would be great help to me.
Unfortunately, I can't really recommend anything beyond what has already
been mentioned in this thread- I learned most of what I know about
interacting with R at the C level from "Writing R Extensions" and by
browsing the comments in the R source.
If anyone else knows of good books/articles/blog posts that discuss hacking
around with R at the C level, I would be interested to see them as well.
-Charlie
-----
Charlie Sharpsteen
Undergraduate-- Environmental Resources Engineering
Humboldt State University
--
View this message in context:
http://n4.nabble.com/Writing-own-simulation-function-in-C-tp1580190p1597080.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.
______________________________________________
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.