Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wlandau/interfacerc
This repo has examples demonstrating the interface between R and C and the Rcpp package.
https://github.com/wlandau/interfacerc
Last synced: 8 days ago
JSON representation
This repo has examples demonstrating the interface between R and C and the Rcpp package.
- Host: GitHub
- URL: https://github.com/wlandau/interfacerc
- Owner: wlandau
- Created: 2015-07-24T14:15:34.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2020-10-27T16:23:32.000Z (about 4 years ago)
- Last Synced: 2024-10-11T18:25:30.893Z (about 1 month ago)
- Language: R
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# interfaceRC
If you are running Windows, be sure to [install `Rtools` and set the "Path" environment variable accordingly](https://www.biostat.wisc.edu/~kbroman/Rintro/Rwinpack.html). Don't forget to install [basic MikTex](http://miktex.org/download) if your computer doesn't have it already. Also, make sure to also add the folder containing R to the "Path" environment variable. For example, if `C:\Program Files\R\R-3.2.1\bin\R.exe` is the path to R, then change the contents of the "Path" variable from \ to `C:\Program Files\R\R-3.2.1\bin\R.exe;\`.
This repo has examples demonstrating the interface between R and C, along with the Rcpp package. Each folder is a separate example, either a full R package or just a bundle of code. Follow the instructions in each folder's `README.md` to compile/install and run.
Here are some other informative resources.
- [Hadley Wickam's guide to writing R packages](http://r-pkgs.had.co.nz/)
- [Hadley's R/C interface chapter in Advanced R](http://adv-r.had.co.nz/C-interface.html)
- [Hadley's Rcpp Advanced R chapter](http://adv-r.had.co.nz/Rcpp.html)
- [setting up `Rtools` on Windows](https://www.biostat.wisc.edu/~kbroman/Rintro/Rwinpack.html)
- The `Rcpp.package.skeleton()` and `compileAttributes()` functions in `Rcpp`.
- [R internals manual](cran.r-project.org/doc/manuals/R-ints.html)
- [Rinternals.h (for SEXP types)](https://svn.r-project.org/R/trunk/src/include/Rinternals.h)
- [writing R extensions in Windows](http://www.math.kit.edu/stoch/~lindner/media/.c.call%20extensions.pdf)