Learn R Programming

s20x (version 3.2.1)

listCaseStudies: List available case studies

Description

Lists all case study R Markdown files shipped with the package and prints them as a formatted text table.

Usage

listCaseStudies()

listCS()

lcs()

Arguments

Value

Invisibly returns a character vector of case study identifiers.

Details

Case studies are expected to live in inst/case_studies and to be named using the pattern CS<chapter>_<number>.Rmd (e.g. CS9_2.Rmd).

The table has two columns: File (the case study identifier) and Title (extracted from the YAML header). Case studies are listed in numerical order, not alphabetical order.

The function invisibly returns a character vector of case study identifiers.

Examples

Run this code
if (FALSE) {
listCaseStudies()
ids = listCaseStudies()
}

Run the code above in your browser using DataLab