crequire: A custum require function

Description Usage Arguments

View source: R/crequire.r

Description

This function is a wrapper of the base require function that first tests if the desired package is installed, if not, installs it, and then requires it.

Usage

1
2
crequire(package, character.only = TRUE,
  repos = "http://cran.us.r-project.org")

Arguments

package

Package name, is passed to require. No default

character.only

Defaults to TRUE. Passed to require

repo

Defaults to http://cran.us.r-project.org


martingerdin/owltown documentation built on May 21, 2019, 12:38 p.m.