accept: Document Acceptance of an R Installation

Description Usage Arguments Details Value Note Author(s) References See Also

Description

Execution of accept is a procedural act pertininent to installation qualification. The function logs an act of acceptance of the current installation, noting the conditions of acceptance. Currently, the conditions include the login of the acceptor, the time of acceptance (GMT) and any contingent packages that survive packageCheck.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
accept(
	contingencies = c(
		'akima',
		'boot',
		'coda',
		'chron',
		'foreign',
		'fork',
		'lattice',
		'locfit',
		'MASS',
		'nlme',
		'plyr',
		'R2WinBUGS',
		'reshape',
		'SASxport',
		'survival'
	),
	installMissing = TRUE,
	...,
	lib.loc = .libPaths(),
	lib = lib.loc[[1]],
	type = 'source'
)

Arguments

contingencies

a character vector of packages that must survive packageCheck in order for acceptance to succeed. Can be NULL. Defaults are arbitrarily chosen to suit the needs of Metrum Research Group LLC.

installMissing

scalar logical: should install.packages be attempted for missing contingencies?

...

extra arguments, ignored

lib.loc

character vector of library trees to be searched; passed to installed.packages and packageCheck

lib

character string for library to which any needed packages will be installed; Passed to installed.packages

type

passed to install.packages

Details

The file ‘accept.xml’ in .Library is created if it does not exist, and appended if it does. In addition to the acceptor's login and the time, names, versions, and paths of any contingent packages are stored.

If installMissing is TRUE, the function notes the packages not in lib.loc and tries to install them to lib before trying to load them.

Value

an invisible named vector of version identifiers, where the names are package names.

Note

No accommodation is made for the case where a package is installed in more than one of the locations indicated by lib.loc. Result will be determined by the default behaviors of installed.packages and library, both of which accept lib.loc and presumably use the first encountered instance of any package name.

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also


metrumrg documentation built on May 2, 2019, 5:55 p.m.