![]() * installing *source* package ‘testprojone’ … * installing to library ‘D:/Program Files/R/R-3.3.0/library’ => Rcmd.exe INSTALL –no-multiarch –with-keep.source testprojone In the Build output you should see the following output Now we have the package we can test that this works by calling the hello function (which is automatically created), but first we need to build and register the package.įrom the RStudio use the following commandīuild -> Build and Reload (Ctrl +Shift +B) RStudio will generate a number of files and directories under “D:\AllData\testprojone”. For my example my package will be called testprojone and I am created this package in the directory “D:/AllData” Set the package name and then provide a location where the sub directories will be created. Select R Package for the project type (this will generate the skeleton R Package project for you). To create the package from R Studio menu New -> New Projectįor this project I am going to use a new directory so select that option in the dialog. Next create the package that will contain our native library and the R code to call the library. ![]() I have the following pieces of software installed.Īs getting R and R Studio installed and configured are already covered by a number posts I won’t repeat those steps here (just make sure that you install R before you install R Studio).įrom within R Studio install the devtools package.įrom the console you can use the following commandįrom the console you can use the following command: There does not appear to be a good set of instructions on getting a new custom R Package (utilizing Rcpp to call C++ from R) so given that I have gone through the pain of configuring this for a project I am working on I decided to write down some instructions on what I did.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |