Skip to content

Commit

Permalink
Type 'must' be one of .... in message instead of should be
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrandin committed Sep 27, 2023
1 parent 88c52c6 commit 21d3f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/draft.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ draft <- function(type = c("resdoc", "resdoc-b", "sr", "techreport", "manureport
if(!grepl("\\/rmarkdown\\/templates", type)){
# This is necessary so this function also works with unit testing
if(!type %in% c("resdoc", "resdoc-b", "sr", "techreport", "manureport")){
alert(csas_color("type"), " should be one of ",
alert(csas_color("type"), " must be one of ",
csas_color("resdoc"), ", ", csas_color("resdoc-b"), ", ",
csas_color("sr"), ", ",
csas_color("techreport"), ", or ", csas_color("manureport"))
Expand Down

0 comments on commit 21d3f35

Please sign in to comment.