find_remotes: Proposes values for Remotes field for DESCRIPTION file based...

View source: R/set_remotes.R

find_remotesR Documentation

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)

Arguments

pkg

Character. Packages to test for potential non-CRAN installation

Value

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

Examples

# 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()
## Not run: 
# For the current package directory
att_from_description() %>% find_remotes()

## End(Not run)


# For a specific package name
find_remotes("attachment")

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


attachment documentation built on Sept. 19, 2022, 5:07 p.m.