Learn R Programming

ProjectTemplate (version 0.5-1)

require.package: Require a package for use in the project

Description

This function will require the given package. If the package is not installed it will stop execution and print a message to the user instructing them which package to install and which function caused the error.

Usage

require.package(package.name)

Arguments

package.name
A character vector containing the package name. Must be a valid package name installed on the system.

Value

  • No value is returned; this function is called for its side effects.

Examples

Run this code
library('ProjectTemplate')

require.project('PackageName')

Run the code above in your browser using DataLab