-
Notifications
You must be signed in to change notification settings - Fork 14
RcppMLPACK.package.skeleton
Matthew Henderson edited this page Oct 3, 2016
·
2 revisions
The package also contains a RcppMLPACK.package.skeleton() function for people who want to use MLPACK code in their own package. It follows the structure of RcppArmadillo.package.skeleton().
library(RcppMLPACK)
RcppMLPACK.package.skeleton("foobar")
Creating directories ...
Creating DESCRIPTION ...
Creating NAMESPACE ...
Creating Read-and-delete-me ...
Saving functions and data ...
Making help files ...
Done.
Further steps are described in './foobar/Read-and-delete-me'.
Adding RcppMLPACK settings
>> added Imports: Rcpp
>> added LinkingTo: Rcpp, RcppArmadillo, BH, RcppMLPACK
>> added useDynLib and importFrom directives to NAMESPACE
>> added Makevars file with RcppMLPACK settings
>> added Makevars.win file with RcppMLPACK settings
>> added example src file using MLPACK classes
>> invoked Rcpp::compileAttributes to create wrappersBy using RcppMLPACK.package.skeleton(), a package skeleton is generated and files are list below.
system("ls -R foobar")
foobar:
DESCRIPTION man NAMESPACE R Read-and-delete-me src
foobar/man:
foobar-package.Rd
foobar/R:
RcppExports.R
foobar/src:
kmeans.cpp Makevars Makevars.win RcppExports.cpp