getSystemDir: Get the system installation directory

View source: R/getSystemDir.R

getSystemDirR Documentation

Get the system installation directory

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

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

getSystemDir("basilisk", installed=FALSE)


LTLA/basilisk.utils documentation built on June 26, 2022, 4:06 a.m.