log_decision.Rd
Used to programmatically document decisions - note that you have to store them to a file to not lose them (i.e. if used interactively).
log_decision( label, description = "", alternatives = "", date = as.character(Sys.Date()), id = NULL, justification = "", silent = justifier::opts$get("silent"), ... )
label | A human-readable label for the |
---|---|
description | A human-readable description. |
alternatives | The alternatives between which was chosen. |
date | The date of the decision. |
id | Optionally, a manually specified id (otherwise, randomly generated). |
justification | A justification specified using |
silent | Whether to print messages. |
... | Any additional options will be stored in the decision. |
Invisibly, the decision as a justifier
object (generated by
justifier::dcsn()
).
#>log_decision("First we start using `justifier`.", silent=FALSE);#>log_decision(paste0("Then we start documenting our ", "decisions and justifications."), silent=FALSE);#>log_decision("Then we start learning from ourselves.", silent=FALSE);#>workspace();#> A list of 3 justifier elements of type justifierDecision and with identifiers 'vkfj_D77j6696x', 'rmpl_D77j6696x' & 'vrua_D77j6696x'