Skip to contents

Add the Analysis Package Layout to the current package.

Usage

use_analysis_package(prompt = FALSE)

Arguments

prompt

If TRUE, prompt before writing renv.lock, passed to renv::snapshot().

Value

List containing dirs created, rbuildignore lines added to .Rbuildignore, gitignore

exclusions added to .gitignore.

Details

When run, use_analysis_package() creates analysis package directories, adds exclusions to .gitignore and .Rbuildignore, creates _base.yml in pkgdown from the first URL in DESCRIPTION, installs the README.Rmd template for analysis packages, and the dplyr package needed for the README.Rmd template.