Learn R Programming

Rcpp (version 0.7.7)

Rcpp.package.skeleton: Create a skeleton for a new package depending on Rcpp

Description

Rcpp.package.skeleton automates the creation of a new source package that intends to use features of Rcpp. It is based on the package.skeleton function which it executes first.

Usage

Rcpp.package.skeleton(name = "anRpackage", list = character(), 
	environment = .GlobalEnv, path = ".", force = FALSE, 
	namespace = TRUE, code_files = character())

Arguments

environment
namespace
code_files

Value

  • Nothing, used for its side effects

Details

In addition to package.skeleton : The DESCRIPTION file gains a Depends line requesting that the package depends on Rcpp The NAMESPACE, if any, gains a useDynLib directove The src directory is created if it does not exists and a Makevars file is added setting the environment variables PKG_CXXFLAGS and PKG_LIBS

See Also

package.skeleton

Examples

Run this code
f <- function(){}
Rcpp.package.skeleton( "foobar", "f" )

Run the code above in your browser using DataLab