Description Usage Arguments Details Value
View source: R/create_project.R
Because the course repo uses both a master and binder branch, we need to make sure the data objects are going in both branches.
1 | add_data_to_lesson(dataobj)
|
dataobj |
- a data object, usually a tibble or data.frame |
The function will apply git stash to the repository before doing anything. Then the object is added to both the master and binder branch using usethis::use_data() before being committed to both.
The function then switches back to the current repository and applies the stash to get back any uncommitted changes.
added and committed objects to both the binder and master branches
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.