Skip to contents

Reads tutorial definitions from the tutorials table.

Usage

get_tutorials(con, tutorial_id = NULL, course_id = NULL)

Arguments

con

A DBI connection.

tutorial_id

Optional tutorial identifier.

course_id

Optional course identifier.

Value

A tibble of registered tutorials.

Examples

db_path <- tempfile(fileext = ".sqlite")
con <- init_tracking_db(db_path, overwrite = TRUE)
register_tutorials(con, "module_01", course_id = "stat101")
#> # A tibble: 1 × 5
#>   tutorial_id course_id tutorial_label version created_at          
#>   <chr>       <chr>     <chr>          <chr>   <chr>               
#> 1 module_01   stat101   module_01      NA      2026-06-24T12:25:16Z
get_tutorials(con, course_id = "stat101")
#> # A tibble: 1 × 5
#>   tutorial_id course_id tutorial_label version created_at          
#>   <chr>       <chr>     <chr>          <chr>   <chr>               
#> 1 module_01   stat101   module_01      NA      2026-06-24T12:25:16Z
DBI::dbDisconnect(con)