Learn R Programming

devtools (version 1.13.3)

use_package: Use specified package.

Description

This adds a dependency to DESCRIPTION and offers a little advice about how to best use it.

Usage

use_package(package, type = "Imports", pkg = ".")

Arguments

package

Name of package to depend on.

type

Type of dependency: must be one of "Imports", "Depends", "Suggests", "Enhances", or "LinkingTo" (or unique abbreviation)

pkg

package description, can be path or package name. See as.package for more information.

See Also

Other infrastructure: infrastructure, use_build_ignore, use_data_raw, use_data, use_news_md, use_readme_rmd

Examples

Run this code
# NOT RUN {
use_package("ggplot2")
use_package("dplyr", "suggests")

# }

Run the code above in your browser using DataLab