devtools (version 1.6.1)

infrastructure: Add useful infrastructure to a package.

Description

Add useful infrastructure to a package.

Usage

use_testthat(pkg = ".")

use_rstudio(pkg = ".")

use_vignette(name, pkg = ".")

use_rcpp(pkg = ".")

use_travis(pkg = ".")

use_package_doc(pkg = ".")

Arguments

pkg
package description, can be path or package name. See as.package for more information.
name
File name to use for new vignette. Should consist only of numbers, letters, _ and -. I recommend using lower case.

<code>use_testthat</code>

Add testing infrastructure to a package that does not already have it. This will create tests/testthat.R, tests/testthat/ and add testthat to the suggested packages. This is called automatically from test if needed.

<code>use_rstudio</code>

Does not modify .Rbuildignore as RStudio will do that when opened for the first time.

<code>use_knitr</code>

Adds needed packages to DESCRIPTION, and creates draft vignette in vignettes/. It adds inst/doc to .gitignore so you don't accidentally check in the built vignettes.

<code>use_rcpp</code>

Creates src/ and adds needed packages to DESCRIPTION.

<code>use_travis</code>

Add basic travis template to a package. Also adds .travis.yml to .Rbuildignore so it isn't included in the built package.

<code>use_package_doc</code>

Adds a roxygen template for package documentation

See Also

Other infrastructure: add_build_ignore, use_build_ignore; use_data_raw; use_data; use_package