require.or.install: Install Missing Package

View source: R/install.R

require.or.installR Documentation

Install Missing Package

Description

Install Missing Package

Usage

require.or.install(
  name,
  ...,
  install.fun = install.git,
  load.fun = require,
  require.name = name,
  force = FALSE,
  install.missing = TRUE,
  version = branch,
  branch = NULL,
  libpath = "lib"
)

require.or.install.dev(name, url.pattern = file.package.pattern, ...)

Arguments

name

Name of the package

...

to be forwarded to install.fun

install.fun

Package installation function to use

load.fun

how should the package be attached 'library' or 'require'

force

force install

install.missing

should we install missing packages

Functions

  • require.or.install: Install specified package in case call to require fails.

  • require.or.install.dev: For development use. Installs package directly from directory not from remote repo


jalgos/jsroot documentation built on Jan. 27, 2025, 3:40 p.m.