Description Usage Arguments Details Value
View source: R/generate_thumbnails.R
Generate a html of thumbnails
1 | generate_thumbnails(out_dir, html_fname, html_title, anonymise = FALSE)
|
out_dir |
The directory in which student html files and the figures are kept. |
html_fname |
The name of the master html file which will contain all
thumbnails. This file will be created in |
html_title |
The title tag of the master html page. This will be displayed on top of the output html page. |
anonymise |
If TRUE, the original filenames will be replaced with inocuous numbers. If FALSE, the original filenames will be retained. |
After running render_one
on a set of R/Rmd files
in a directory, this function helps to consolidate them for review.
The output folder contains all the generated html files, images and a log file. This function will extract the images from each html file and display them as thumbnails on a new html page, with links to all individual files.
The function returns nothing, but it should create a html page of thumbnails of all the images that students plotted, along with links to their individual pages.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.