installSourcePackages: Install source packages

View source: R/install.R

installSourcePackagesR Documentation

Install source packages

Description

(Re)install source packages. Dependencies of these packages will not force source installs, unless those dependencies are listed in fromSource. Note, this function only has real consequences if the default repository in options(CRAN = "someURL") is set to a binary package repository, and will not affect Windows machines unless forceSourceOnWindows is TRUE.

Usage

installSourcePackages(
  fromSource = sourcePkgs(),
  libPath = .libPaths()[1],
  repos = "https://cloud.r-project.org",
  forceSourceOnWindows = FALSE
)

Arguments

fromSource

A character vector of packages that must be installed from source on Linux-alikes, even if the options("repos") is pointing to a binary repository of binary packages. The default is all the spatial packages, plus a few others. Has no effect if

libPath

Passed to both update.packages(lib.lob = libPath) and install.packages(lib = libPath, ...)

repos

URL of CRAN mirror to use to fetch source packages

forceSourceOnWindows

Logical. If TRUE, then this will install from source on Windows, which is often unnecessary for e.g., spatial packages.

Note

if installing on macOS, homebrew installation of GDAL etc. is required.


PredictiveEcology/SpaDES.install documentation built on March 10, 2023, 1:19 p.m.