auto.library: Load package, install automatically if missing.

Description Usage Arguments Value Examples

Description

Load package, install highest version

from bioconductor

or rstudio if missing.

Usage

1
auto.library(package)

Arguments

package

the name of a package

Value

invisible TRUE

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{
    auto.library(stringr) #use package name
    auto.library("stringr") #use package name string
    auto.library("package_no_exist") # Print warning message when package is not found







tutorial("auto.library") # print tutorial to console





}

WeiZhang317/octopus documentation built on May 20, 2019, 4:26 p.m.