set_remotes_to_desc: Add Remotes field to DESCRIPTION based on your local...

Description Usage Arguments Value Examples

View source: R/set_remotes.R

Description

Add Remotes field to DESCRIPTION based on your local installation

Usage

1
set_remotes_to_desc(path.d = "DESCRIPTION", stop.local = FALSE, clean = TRUE)

Arguments

path.d

path to description file.

stop.local

Logical. Whether to stop if package was installed from local source. Message otherwise.

clean

Logical. Whether to clean all existing remotes before run.

Value

Used for side effect. Adds Remotes field in DESCRIPTION file.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
tmpdir <- tempdir()
file.copy(system.file("dummypackage", package = "attachment"), tmpdir,
 recursive = TRUE)
dummypackage <- file.path(tmpdir, "dummypackage")
# Add remotes field if there are Remotes locally
att_amend_desc(dummypackage) %>%
  set_remotes_to_desc()
## Not run: 
# For your current package
att_amend_desc() %>%
  set_remotes_to_desc()

## End(Not run)

attachment documentation built on Nov. 16, 2021, 9:17 a.m.