gp_api_unit_replace | R Documentation |
Completely deletes and re-inserts a LESSON.json for the mini-unit on the MongoDB database (aka gp-catalog). There are 2 catalogs:
dev (not public-facing; viewable through the dev.galacticpolymath.com)
production (public facing; live on galacticpolymath.com)
gp_api_unit_replace(
WD = "?",
prompt_user = TRUE,
dev = NULL,
verbosity = 1,
print_output = TRUE
)
WD |
working directory, passed to |
prompt_user |
logical; ask user before deleting and replacing the unit? default=TRUE |
dev |
logical; default (NULL) modifies both production and dev gp-catalogs. FALSE modifies the production gp-catalog. TRUE modifies only the dev catalog. supplying c(TRUE,TRUE) is the same as NULL |
verbosity |
passed to |
print_output |
logical; print result to user? default=TRUE |
Which catalog you're modifying is controlled by the dev parameter. Default is to modify both (so they don't get out of sync). Shallow wrapper for internal functions gp_api_unit_delete()
and gp_api_unit_insert()
success (logical)
Other GP API:
gp_api_get_token()
,
gp_api_query()
,
gp_api_query_users()
,
gp_api_unit_delete()
,
gp_api_unit_insert()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.