Tally Available Points in Lab

count_points(notebook = NULL, margins = TRUE)

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.

margins

A scalar logical which indicates whether to add a row for the total number of points. Defaults to TRUE.

Value

A dataframe indicating total optional and required number of points.

Examples

# R markdown notebook <- system.file("extdata", "dummylab.Rmd", package = "labzenr") count_points(notebook)
#> type total prop #> Non-Optional 14 0.9500000 #> Optional 6 0.4071429 #> Total 20 1.3571429
# Python notebook notebook <- system.file("extdata", "dummylab.ipynb", package = "labzenr") count_points(notebook)
#> type total prop #> Non-Optional 19 0.95 #> Optional 20 1.00 #> Total 39 1.95