Skip to content

Commit

Permalink
Fix error messages pertaining to copy_sty command being set
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrandin committed Sep 27, 2023
1 parent 21d3f35 commit 92f7f64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/update-csasstyle.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ update_csasstyle <- function(copy = TRUE,
fn <- system.file("csas-style", package = "csasdown")
if(!copy && line_nums){
bail("You have set ", csas_color("copy"), " to ", csas_color("FALSE"),
"and ", csas_color("line_nums"), " to ", csas_color("TRUE"),
" and ", csas_color("line_nums"), " to ", csas_color("TRUE"),
" in the ", fn_color("index.Rmd"), " YAML header. The permanent ",
"style file cannot be modified as needed to include line numbering. ",
"Either set ", csas_color("copy"), " to ", csas_color("TRUE"),
"or ", csas_color("line_nums"), " to ", csas_color("FALSE"),
" or ", csas_color("line_nums"), " to ", csas_color("FALSE"),
" to build.")
}
if(!copy && lot_lof){
bail("You have set ", csas_color("copy"), " to ", csas_color("FALSE"),
"and ", csas_color("lot_lof"), " to ", csas_color("TRUE"),
" and ", csas_color("lot_lof"), " to ", csas_color("TRUE"),
" in the ", fn_color("index.Rmd"), " YAML header. The permanent ",
"style file cannot be modified as needed to include the lists of ",
"tables and figures. Either set ",
Expand All @@ -51,7 +51,7 @@ update_csasstyle <- function(copy = TRUE,
}
if(!copy && draft_watermark){
bail("You have set ", csas_color("copy"), " to ", csas_color("FALSE"),
"and ", csas_color("draft_watermark"), " to ", csas_color("TRUE"),
" and ", csas_color("draft_watermark"), " to ", csas_color("TRUE"),
" in the ", fn_color("index.Rmd"), " YAML header. The permanent ",
"style file cannot be modified as needed to include the DRAFT ",
"watermark. Either set ",
Expand Down

0 comments on commit 92f7f64

Please sign in to comment.