Change the Remotes field in DESCRIPTION
Remotes field in DESCRIPTIONUpdate 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 )
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).Invisibly returns the new vector of remote specifications (character).
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")
Related functions from the same R package
Useful links