Learn R Programming

annotater (version 0.2.4)

expand_metapackages: Expand metapackages

Description

Expand metapackages

Usage

expand_metapackages(string_og)

Value

Text string with metapackage load calls replaced by multiple separate calls to the core packages that make up the metapackage. Core packages will be fenced in four commenting symbols and the order follows the attachment order from each metapackage. Will make note of metapackages not currently installed.

Arguments

string_og

text string (script) with package load calls

Examples

Run this code
test_string <- c("library(tidyverse)")
expand_metapackages(test_string)

Run the code above in your browser using DataLab