update_fm | R Documentation |
Checks for new galacticPubs front-matter_TEMPLATE.yml. If found, it will add new fields, return the updated object, and write to drive (meta/front-matter.yml) if requested.
update_fm(
WD = "?",
WD_git = NULL,
change_this = NULL,
save_output = TRUE,
return_fm = FALSE,
reorder = TRUE,
drive_reconnect = FALSE,
try_harder = FALSE,
recompile = TRUE
)
WD |
working directory; default=getwd(); if "?" supplied, will invoke |
WD_git |
default=NULL. If you already know the path to the gp-lessons folder, this is more efficient. |
change_this |
A list of values to change in the front matter. Default=NULL. Example: list(RebuildAllMaterials=TRUE,Language="Italian) will trigger a full lesson rebuild when |
save_output |
do you want to save the updated front-matter to WD/meta/front-matter.yml? Default=TRUE |
return_fm |
logical; if TRUE, returns the the updated front-matter; if FALSE (default), returns TRUE/FALSE of success |
reorder |
do you want to reorder the resulting list, based on template order? default=TRUE |
drive_reconnect |
logical; do you want to re-look-up all |
try_harder |
passed to |
recompile |
logical; if TRUE (default), runs |
If meta/front-matter.yml not found, it is created from the template. Will also combine language and country info to create locale, and add GPCatalogURL if those fields are blank. Attempts to find the lesson on Google Drive in GP-Studio and add GdriveDirID if missing.
returns logical of success
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.