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)

Arguments

type

Either "original" or "solution"

remove_last_saved

Should we also remove the last_saved version (FALSE by default)?

error

If TRUE, an error is thrown in case there is no file to prepare

Value

NULL