Skip to contents

Useful in RMarkdown.

Usage

print_library(..., .character.only = FALSE, .version = TRUE, .load = TRUE)

print_require(..., .character.only = FALSE, .version = TRUE, .load = TRUE)

print_library_md(..., .character.only = FALSE, .version = TRUE, .load = TRUE)

Arguments

...

Names of packages.

.character.only

Is ... from characters?

.version

Print library version?

.load

Load package, or just print?

Examples

print_library(afex, tidyverse, emmeans, MASS,
  .load = FALSE
)
#> library(afex)      # 1.2.1
#> library(tidyverse) # 
#> library(emmeans)   # 1.8.5
#> library(MASS)      # 7.3.58.1