Make sure all files are original or solution versions, and possibly also remove last_saved versions. This is typically used to prepare the repository for an assignment, or to switch from originals to solution to verify the tests.
prepare_files(type = "original", remove_last_saved = FALSE, error = TRUE)
Either "original"
or "solution"
Should we also remove the last_saved version
(FALSE
by default)?
If TRUE
, an error is thrown in case there is no file to
prepare
NULL