Import a grading template from YAML into a project's database
Source:R/project.R
template_import.RdReads a template YAML file and stores it in the project's grading database,
which is the canonical store for templates. This is the inverse of
template_export(). Equivalent to project_set(project, template = path).
An automatic snapshot of the state being replaced is taken first (see
snapshot_create()).
Arguments
- path
Path to a template
.yaml/.ymlfile. Absolute or relative to the current directory; a bare relative path is also resolved against the project root.- project
Path to the project directory. Defaults to the working directory.
- snapshot
Whether to take an automatic snapshot before the import.
FALSEis for scripts that take their own snapshot once before several imports.- summary
Optional text recorded on the automatic snapshot: what the import changes and why.