create: Create a Minimal Package Skeleton

Description Usage Arguments Value Examples

View source: R/create.R

Description

Generate a named directory in a specified location that contains the absolute bare minimum content for an R package: a DESCRIPTION file and an R/ folder, which contains a demo functions.R script file. The user will be prompted interactively to overwrite if the directory already exists.

Usage

1

Arguments

name

Character string, length 1. Name for your package. Alphanumeric or period characters only. Can't start with a number nor end with a period.

dir

Character string, length 1. Path to the directory where you want the package folder to be created.

Value

Nothing. A directory called name is created or overwritten at location dir.

Examples

1
## Not run: create("mypkg", "~/Desktop")

matt-dray/pico documentation built on Dec. 21, 2021, 2:54 p.m.