yearn: Do yearn on a single package

Description Usage Arguments Details Value Examples

View source: R/yearn.R

Description

Do yearn on a single package

Usage

1
2
3
yearn(pkg, maxdist = 0, username.pref = c("cran", "ropensci", "rstudio",
  "tidyverse", "hadley", "yihui", "RcppCore", "eddelbuettel", "ropenscilabs",
  "hrbrmstr", "thej022214", "bomeara"))

Arguments

pkg

The package name (bare text, NOT in quotes)

maxdist

The maximum distance that counts as a match

username.pref

In case of matches, user names in order of preference.

Details

See the readme file. Basically, this tries to load an installed package. If that fails, it then looks (in order) on Bioconductor, CRAN, GitHub's CRAN mirror, and other GitHub repositories for the package and installs it if it can find it.

Value

NULL if success, a string describing the problem otherwise

Examples

1
2
3
4
## Not run: 
yearn(laser) # A package that was on CRAN but has been removed.

## End(Not run)

yearn documentation built on Jan. 13, 2018, 1:02 a.m.