list_packages: Create a list of packages

Description Usage Arguments Examples

View source: R/list_packages.R

Description

In the first slides of a workshop the set of packages should be specified. This function create a bullet points list with CRAN URL for packages as well as a code chunk to install all packages.

Usage

1
list_packages(pkgs, add_cls = TRUE, clip = TRUE, show = FALSE)

Arguments

pkgs

vector of packages.

add_cls

a logical. Should the command lines to install packages be added.

clip

a logical. Should the package list be copied to the clipboard.

show

a logical. Should the badges be displayed?

Examples

1
list_packages(c("cli", "glue"), clip = FALSE)

QCBSRworkshops/qcbsRworkshops documentation built on Nov. 18, 2020, 11:32 p.m.