Proposes values for Remotes field for DESCRIPTION file based on your installation

find_remotes(pkg)

Arguments

pkg

Character. Packages to test for potential non-CRAN installation

Value

List of non-CRAN packages and code to add in Remotes field in DESCRIPTION

Examples

# Find from vector of packages
find_remotes(pkg = c("attachment", "desc", "glue"))
#> $attachment
#>    Maybe ? 
#> "local:::" 
#> 
# Find from Description file
dummypackage <- system.file("dummypackage", package = "attachment")
att_from_description(
path = file.path(dummypackage, "DESCRIPTION")) %>%
find_remotes()
#> NULL
if (FALSE) {
# For your current directory
att_from_description() %>% find_remotes()
# Find from all installed packages
head(find_remotes(installed.packages()[,1]))
}