add_package: Add or update a package in CRAN @ GitHub

View source: R/add-package.R

add_packageR Documentation

Add or update a package in CRAN @ GitHub

Description

The update is performed based on the current state of the crandb database (See https://github.com/metacran/crandb.)

Usage

add_package(package, reset = FALSE)

Arguments

package

Name of the package

reset

Whether to remove and re-add all the commits. This is useful for commit errors, e.g. an older version of cranatgh failed to remove files from the repo that were deleted in the new package versions.

Details

All versions that are missing form the GitHub repository at https://github.com/cran, are added.

If the package is missing from the GitHub mirror completely, then it is created.

Value

Invisible TRUE if the package was successfully updated, FALSE otherwise.


metacran/cranatgh documentation built on Feb. 11, 2024, 2:20 p.m.