create_aoc: Create package for Advent of Code work

View source: R/create_aoc.R

create_aocR Documentation

Create package for Advent of Code work

Description

Create package for Advent of Code work

Usage

create_aoc(
  path,
  check_name = TRUE,
  open = TRUE,
  overwrite = FALSE,
  package_name = basename(path)
)

Arguments

path

Name of the folder to create the package in. This will also be used as the package name.

check_name

Should we check that the package name is correct according to CRAN requirements.

open

Boolean. Open the created project?

overwrite

Boolean. Should the already existing project be overwritten?

package_name

Package name to use. By default uses basename(path). If path == '.' & package_name is not explicitly set, then basename(getwd()) will be used.

Details

Creates a package skeleton to work on Advent of Code.

See aoc::use_day() function details (?aoc::use_day()) for more info on primary package function. Function based on golem::create_golem() (https://github.com/ThinkR-open/golem).


tjmahr/aoc documentation built on Dec. 10, 2022, 10:19 a.m.