GeistHaus
log in · sign up

Writing R Extensions ¶

cran.r-project.org

Writing R Extensions

16 pages link to this URL
Non-standard files/directories, Rbuildignore and inst - R-hub blog

Paragraphasing Writing R Extensions, an R package is “directory of files which extend R”. These files have to follow a standard structure: you can’t store everything that suits your fancy in a tarball you submit to CRAN. In this post we shall go through what directories and files can go on CRAN and how to navigate this while shipping everything you want to CRAN and keeping some things in the package source only.

1 inbound link en package developmentstandards CC BY 4.0
Wrapping C Code in an R Package

Your collaborator says to you “I have some code I’d like to distribute to people who will probably work in R most of the time. I don’t write R, but I write C. Can you package this up for me?” so you have a few options: re-write the code in R, package up the C code and make it available in R, or say no. I decided to try out the second of these, and this post details how I achieved that.

1 inbound link website en rstatsc