Save your workspace

save_workspace(
  file = NULL,
  encoding = "UTF-8",
  append = FALSE,
  preventOverwriting = TRUE,
  silent = justifier::opts$get("silent")
)

Arguments

file

If specified, the file to export the justification to.

encoding

The encoding to use when writing the file.

append

Whether to append to the file, or replace its contents.

preventOverwriting

Whether to prevent overwriting an existing file.

silent

Whether to be silent or chatty.

x

The justification, either loaded from one or more files or programmatically constructed. This can be one or more decisions, justifications, assertions, or sources.

Value

Examples

clean_workspace(force = TRUE, silent=FALSE);
#> Your justifier workspace has been cleaned and is now empty.
log_decision("First we start using `justifier`.", silent=FALSE);
#> Added new decision with identifier 'xymi_D77j669b4' to a justifier workspace that already contained 0 justifications.
log_decision(paste0("Then we start documenting our ", "decisions and justifications."), silent=FALSE);
#> Added new decision with identifier 'uopt_D77j669b4' to a justifier workspace that already contained 1 justifications.
log_decision("Then we start learning from ourselves.", silent=FALSE);
#> Added new decision with identifier 'ogwt_D77j669b4' to a justifier workspace that already contained 2 justifications.
save_workspace();
#> --- #> decision: #> - id: xymi_D77j669b4 #> label: First we start using `justifier`. #> description: '' #> justification: '' #> alternatives: '' #> date: '2020-04-03' #> - id: uopt_D77j669b4 #> label: Then we start documenting our decisions and justifications. #> description: '' #> justification: '' #> alternatives: '' #> date: '2020-04-03' #> - id: ogwt_D77j669b4 #> label: Then we start learning from ourselves. #> description: '' #> justification: '' #> alternatives: '' #> date: '2020-04-03' #> #> ---