parse_lab: Parse MDS lab files to return the markdown content

Description Usage Arguments Value Examples

View source: R/parse_lab.R

Description

Parse MDS lab files to return the markdown content

Usage

1
parse_lab(notebook = NULL)

Arguments

notebook

A character indicating the path or list of paths to MDS lab files (either.ipynb or .Rmd). If left blank, the function will recursively search for all labs in the working directory based on the file extension.

Value

A character vector where each element is the content of one markdown cell.

Examples

1
2
3
4
5
6
7
# R markdown
notebook <- system.file("extdata", "dummylab.Rmd", package = "labzenr")
labzenr:::parse_lab(notebook)

# Python notebook
notebook <- system.file("extdata", "dummylab.ipynb", package = "labzenr")
labzenr:::parse_lab(notebook)

UBC-MDS/labzenr documentation built on March 28, 2021, 1:28 p.m.