Skip to contents

Install, if necessary, and load a R library

Usage

require_package(package, loading = TRUE)

Arguments

package

package name

loading

if TRUE, package is loaded

Examples

if (FALSE) {
require_package("data.table", loading = FALSE)
}