refreshPackage: Installer and loader of a package, either local or from...

Description Usage Arguments See Also

Description

refreshPackage takes a path to a file or folder, or a URL, determines whether it exists, and installs it. In order for local source to be used, the path given must exist locally and local must be true. Once the package given by packPath is installed, this function attempts to load the package, using either a given name or an inferred one. If no name is given and the name inference strategy employed fails to yield a viable package name candidate, then the attempt to load the package is skipped.

Usage

1
2
refreshPackage(packPath, local = TRUE, name = NULL, nameFromUrl = NULL,
  load = TRUE, force = FALSE)

Arguments

packPath

Path to the package to install and load.

local

Use local source for the installation, default TRUE.

name

Name for the package to load, or a strategy with which it is to be inferred. If omitted, then the package is simply reinstalled, not also reloaded.

nameFromUrl

Strategy with which to infer package name from URL, optional; this is only used if local is FALSE. Omit to only reinstall and skip reload.

load

Whether to load the package into the global environment if it was successfully located and installed.

force

Whether to force installation even if there's no hash delta.

See Also

Other packages: locatePackage


vreuter/SwissR documentation built on May 14, 2019, 11:29 a.m.