View source: R/discard_changes.R
discard_changes | R Documentation |
This will revert local changes for a lesson project folder. Does not currently include files that are not watched (e.g. in assets/ or assembled-lesson-materials/ folders)
discard_changes(
gh_proj_name,
commit_msg = "rolling back with discard_changes()",
lessons_dir,
include_untracked = FALSE
)
gh_proj_name |
The unique project title of this lesson as it is named on https://github.com/galacticpolymath. Not necessarily the same as the ShortTitle used in naming lesson presentations and worksheets; probably more specific with underscores. If left off, will try to get this info from the GitHubURL if available in the front-matter.yml. |
commit_msg |
string of commit message explaining why you're discarding changes. |
lessons_dir |
path to the virtualized folder Edu/lessons, where all the lessons are found; default="/Volumes/GoogleDrive/My Drive/Edu/Lessons" |
include_untracked |
logical; Stash (discard) changes to untracked files? Passed to |
logical. TRUE if changes succeeded and clear git change list; FALSE if change list not empty.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.