init_cpp: Register functions implemented in C++

Description Usage Arguments Value

View source: R/init_cpp.R

Description

If you set up your package using rstan_package_skeleton before version 1.2.1 of rstantools it may be necessary for you to call this function yourself in order to pass R CMD check in R >= 3.4. If you used rstan_package_skeleton in rstantools version 1.2.1 or later then this has already been done automatically.

Usage

1
init_cpp(name, path)

Arguments

name

The name of your package as a string.

path

The path to the root directory for your package as a string. If not specified it is assumed that this is already the current working directory.

Value

This function is only called for its side effect of writing the necessary init.cpp file to the package's src/ directory.


rstantools documentation built on Aug. 22, 2018, 9:04 a.m.