
Add Remotes field to DESCRIPTION based on your local installation
Source:R/set_remotes.R
set_remotes_to_desc.Rd
Add Remotes field to DESCRIPTION based on your local installation
Examples
tmpdir <- tempfile(pattern = "setremotes")
dir.create(tmpdir)
file.copy(system.file("dummypackage", package = "attachment"), tmpdir,
recursive = TRUE)
#> [1] TRUE
dummypackage <- file.path(tmpdir, "dummypackage")
# Add remotes field if there are Remotes locally
att_amend_desc(dummypackage) |>
set_remotes_to_desc()
#> Saving attachment parameters to yaml config file
#> Updating dummypackage documentation
#> Setting `RoxygenNote` to "7.3.2"
#> Writing NAMESPACE
#> ℹ Loading dummypackage
#> Writing NAMESPACE
#> ℹ Loading dummypackage
#> Package(s) Rcpp is(are) in category 'LinkingTo'. Check your Description file to be sure it is really what you want.
#> There are no remote packages installed on your computer to add to description
#> NULL
# Clean temp files after this example
unlink(tmpdir, recursive = TRUE)
if (FALSE) { # \dontrun{
# For your current package
att_amend_desc() |>
set_remotes_to_desc()
} # }