IPDFileCheck (version 0.3.0)

checkLoadPackages: Function to check the package is installed, if not install

Description

Function to check the package is installed, if not install

Usage

checkLoadPackages(pkg)

Arguments

pkg

name of package(s)

Value

0, if packages cant be installed and loaded, else -1

Examples

Run this code
# NOT RUN {
checkLoadPackages("dplyr")
# }

Run the code above in your browser using DataLab