Learn R Programming

manifesto (version 0.0.2)

manifest_create: Create a minimal TOML manifest file

Description

This creates a minimal TOML file with a [manifesto], [project], [environment], and empty [dependencies] section.

Usage

manifest_create(
  path,
  project_name = "Project",
  project_version = "0.0.1",
  manifesto_version = manifest_version(),
  r_version = "*",
  ...
)

Value

Invisibly returns the written path.

Arguments

path

File path to write to. If missing, a temporary file will be used.

project_name

Optional project name. Defaults to Project.

project_version

Optional project version. Defaults to 0.0.1.

manifesto_version

Optional manifesto version. Defaults to the current package version.

r_version

Optional R version settings. Defaults to '*'.

...

Additional named arguments to add to the manifest. These will be added to the top-level of the TOML file.

Examples

Run this code
path <- manifest_create(
  dependencies = list(dplyr = '>= 1.0.0'),
  'suggests-dependencies' = list(testthat = '>= 3.0.0')
)

Run the code above in your browser using DataLab