Learn R Programming

attachment (version 0.4.5)

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

Description

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

Usage

find_remotes(pkg)

Value

List of all non-CRAN packages and code to add in Remotes field in DESCRIPTION. NULL otherwise.

Arguments

pkg

Character. Packages to test for potential non-CRAN installation

Examples

Run this code
# Find from vector of packages
find_remotes(pkg = c("attachment", "desc", "glue"))

# Find from Description file
dummypackage <- system.file("dummypackage", package = "attachment")
att_from_description(
path = file.path(dummypackage, "DESCRIPTION")) %>%
find_remotes()

if (FALSE) {
# For the current package directory
att_from_description() %>% find_remotes()
}

# \donttest{
# For a specific package name
find_remotes("attachment")

# Find remotes from all installed packages
find_remotes(list.dirs(.libPaths(), full.names = FALSE, recursive = FALSE))
# }

Run the code above in your browser using DataLab