Start a new project with the cpp11eigen package template

pkg_template(path = NULL, pkgname = NULL)

Arguments

path

Path to the new project

pkgname

Name of the new package

Value

The file path to the copied template (invisibly).

Examples

# create a new directory
dir <- tempdir()
dir.create(dir)
#> Warning: '/tmp/RtmpWL6JSs' already exists

# copy the package template into the directory
pkg_template(dir, "mynewpkg")