Updates path entries in a project's config.yml. Only supplied arguments are
changed; an omitted (NULL) argument is left untouched. Paths are interpreted
relative to the project root.
Usage
project_set(
path = ".",
repos = NULL,
comments = NULL,
template = NULL,
key = NULL,
artifacts = NULL
)Arguments
- path
Path to the project directory. Defaults to the working directory.
- repos
Root-relative repos directory to record. Warns if it does not exist.
- comments
Root-relative comments directory to record. Warns if it does not exist.
- template
A grading template to store in the project database: a
markermd_templateobject or a path to a template YAML file (which is parsed and imported, so an invalid file errors immediately). PassNAto clear the stored template. See alsotemplate_import().- key
Root-relative key (solution) repository directory to record. Warns if it does not exist. Pass
NAto clear a previously configured key.- artifacts
Character vector of root-relative directories holding the students' rendered reports, replacing the recorded list. Warns for any that does not exist. Pass
NAorcharacter(0)to record none.
Examples
if (FALSE) { # \dontrun{
# Record the key repository and store a template from YAML
project_set("hw01", key = "hw01-key")
project_set("hw01", template = "hw01-template.yaml")
# Record the directories of rendered reports
project_set("hw01", artifacts = c("html", "md"))
} # }