change_remotes_field function

Change the Remotes field in DESCRIPTION

Change the Remotes field in DESCRIPTION

Update the Remotes field of a package DESCRIPTION file so that dependencies point to specific development targets (develop, snapshot, or main).

change_remotes_field( path, target = c("develop", "snapshot", "main"), verbose = TRUE )

Arguments

  • path: [character ] Path to the package root directory.
  • target: [character ] Target branch or type of remote: must be one of "develop", "snapshot", or "main".
  • verbose: [logical ] Whether to print current and new remote fields (default: TRUE).

Returns

Invisibly returns the new vector of remote specifications (character).

Examples

path_rjd3workspace <- file.path(tempdir(), "rjd3workspace") file.copy( from = system.file("rjd3workspace", package = "releaser"), to = dirname(path_rjd3workspace), recursive = TRUE ) change_remotes_field(path = path_rjd3workspace, target = "develop")

Other functions in releaser

Related functions from the same R package