View source: R/utility_functions.r
setup_slides | R Documentation |
Unzip the slides folder
setup_slides(
folder,
zipfile = "slides.zip",
slidefolder = "slides",
destfolder = "slides"
)
folder |
The destination to copy to within the user's home. This must be supplied by the user. |
zipfile |
The name of the bundled slide file. |
slidefolder |
The name of the course packet folder to be created |
Copy slide scaffolding in slides.zip to the slides folder
Transfers an included zip file from the package to slides
.
Since we now make the CSS, JS, and other components available via a md document format that wraps
Xaringan's moon_reader
, and also provide a template that will create a directory etc,
we don't need this way of doing things anymore when using the package locally. But it is still useful when
e.g. putting slides in a Quarto website and the libs folder needs to be provided.
The zipfile
is copied to folder
and its contents
expanded into a directory, the slidefolder
.
Kieran Healy
## Not run:
if(interactive()){
#EXAMPLE1
}
## End(Not run)
setup_slides()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.