getSystemDir: Get the system installation directory

Description Usage Arguments Value Author(s) Examples

View source: R/getSystemDir.R

Description

Get the system installation directory for a package. This is not entirely trivial as it may be called before the package is installed.

Usage

1
getSystemDir(pkgname, installed)

Arguments

pkgname

String containing the package name.

installed

Logical scalar specifying whether the package is likely to be installed yet.

Value

String containing the path to the (likely, if installed=FALSE) installation directory for pkgname.

Author(s)

Aaron Lun

Examples

1
getSystemDir("basilisk", installed=FALSE)

basilisk.utils documentation built on Jan. 29, 2021, 2 a.m.