get_package_source: Retrieve a package source

Description Usage Arguments Value See Also Examples

Description

get_package_source retrieves a package source, decompresses it, and places it in a directory so that software engineering tests can be performed on the contents. See the "See also" section for examples of these tests, and remove_package_source to remove the source directory when you're done using it.

Usage

1
get_package_source(package_name)

Arguments

package_name

the name of a package.

Value

a full, non-relative link to the directory the decompressed package is stored in.

See Also

remove_package_source to remove the package, get_package_metadata to get the metadata associated with a package, or get_package_names to retrieve a listing of the names of packages on CRAN.

Examples

1
2
3
4
5
6
7
## Not run: 
# Get the package source for urltools
file_location <- get_package_source("urltools")
file_location
dir(file_location)

## End(Not run)

Ironholds/practice documentation built on May 7, 2019, 6:41 a.m.