pkg_template: Start a new project with the cpp11armadillo package template

View source: R/template.R

pkg_templateR Documentation

Start a new project with the cpp11armadillo package template

Description

Start a new project with the cpp11armadillo package template

Usage

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)

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

cpp11armadillo documentation built on June 8, 2025, 9:40 p.m.