Skip to content

Commit

Permalink
Fix error message when draft() is called with unknown type
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrandin committed Sep 27, 2023
1 parent fdf93dd commit 88c52c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/draft.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ draft <- function(type = c("resdoc", "resdoc-b", "sr", "techreport", "manureport
if(!type %in% c("resdoc", "resdoc-b", "sr", "techreport", "manureport")){
alert(csas_color("type"), " should be one of ",
csas_color("resdoc"), ", ", csas_color("resdoc-b"), ", ",
csas_color("sr"),
csas_color("techreport"), ", or ", csas_color("manureport"),
call. = FALSE)
csas_color("sr"), ", ",
csas_color("techreport"), ", or ", csas_color("manureport"))
}
package <- "csasdown"
}else{
Expand Down

0 comments on commit 88c52c6

Please sign in to comment.