Skip to content

Add locations in the Remotes field in DESCRIPTION


desc_add_remotes(remotes, file = ".", normalize = FALSE)



Character vector of remote locations to add. Duplicate locations are eliminated. Note that existing locations are not updated, so if you want to change a remote location of a package, you need to delete the old location first and then add the new one.


DESCRIPTION file to use. By default the DESCRIPTION file of the current package (i.e. the package the working directory is part of) is used.


Whether to "normalize" (reorder and reformat) the fields when writing back the result. See desc_normalize().