Skip to contents

Propose a Production snapshot of Staging.

Usage

propose_snapshot(path_staging, types = c("src", "win", "mac"))

Arguments

path_staging

Character string, directory path to the source files of the staging universe.

types

Character vector, what to pass to the types field in the snapshot API URL. Controls the types of binaries and documentation included in the snapshot.

Value

NULL (invisibly). Called for its side effects. propose_snapshot() writes a snapshot.url file containing an R-universe snapshot API URL to download packages ready for Production. This file is written to the directory given by the path_staging argument.

Details

propose_snapshot() proposes a snapshot of Staging to migrate to Production. The recommended snapshot is the list of packages for which (1) the build and check results of the current release are in Staging, and (2) there are no issues. Writes a snapshot.url file containing an R-universe snapshot API URL to download those packages. This files is written to the directory given by the path_staging argument.

See also

Other staging: update_staging()

Examples

if (FALSE) { # \dontrun{
url_staging = "https://github.com/r-multiverse/staging"
path_staging <- tempfile()
gert::git_clone(url = url_staging, path = path_staging)
propose_snapshot(path_staging = path_staging)
} # }