add_repository: point R to an additional package repository

Description Usage Arguments Value Author(s) Examples

Description

point R to an additional package repository

Usage

1

Arguments

path

the path to a repository. note this should be the root level, where 'src/contrib' exists.

name

the repository name.

Value

nothing. sets the 'repos' option.

Author(s)

Mark Cowley, 2013-05-20

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# for packages that live in ~/src/contrib, specify this:
add_repository("file:///Users/marcow", "local")
getOption("repos")

# <libdir>/src/contrib exists
add_repository(paste0("file://", normalizePath(libdir), "/"), "local")
getOption("repos")

# real example; add the NuGO repository
add_repository("http://nmg-r.bioinformatics.nl/Custom_CDF_DB_V16.0.0/", "NUGO")

## End(Not run)

drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.