Description Usage Arguments Value
The function getStructure
reads in the structure of all existing
Rmd chapters/exercises in the chapters or exercises directory. This file
is also needed in the setup.Rmd
file. In the most cases this
function is used to get the specific directory a file lies in. Therefore
the chapter names have to be unique!
The generation of the structure is done automatically. This is very handy if someone copies Rmd files from one chapter or course to another.
The files
column in the resulting data.table is also the name one
can use to create a course list and create a course Rmd file with
createCourse
.
1 | getStructure(type = "chapters", path = getwd())
|
type |
( |
path |
( |
data.table::data.table
getStructure
returns a data.table
with all the existing
chapter or exercise files. The data table contains the following variables:
- course: Course which contains the file
- chapters: Chapter which contains the file
- files: Name of the files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.