generate_install_file: Generates an R file to install packages used by the project.

Description Usage Arguments Value See Also Examples

Description

The function takes the output of get_packages and writes in a file the commands needed to install and update package used throughout the project.

Usage

1
2
3
4
5
generate_install_file(
  file,
  package_df = get_packages(),
  include_core_package = FALSE
)

Arguments

file

The name of the file to be created.

package_df

A data frame obtained with get_packages that contains information regarding the name, version and source of the package.

include_core_package

Logical, whether to include in the generated install file package which come with R by default

Value

Nothing

See Also

get_packages

Examples

1
2
3
4
5
## Not run: 
package_df <- get_packages(package_options = c("library"))
generate_install_file("install_packages.R", package_df)

## End(Not run)

numeract/Nmisc documentation built on April 29, 2021, 9:56 a.m.