Skip to content

Commit 3e860b0

Browse files
committed
Workaround for workarounds
1 parent cadd317 commit 3e860b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/spell-check.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ spell_check_test <- function(vignettes = TRUE, error = FALSE, lang = NULL, skip_
169169
if(isTRUE(skip_on_cran)){
170170
not_cran <- Sys.getenv('NOT_CRAN')
171171
# See logic in tools:::config_val_to_logical
172-
if(is.na(match(tolower(not_cran), c("1", "yes", "true"))))
172+
if(is.na(match(tolower(not_cran), c("1", "yes", "true")))){
173+
unlink("spelling.Rout.save")
173174
return(cat("All Done!\n"))
175+
}
174176
}
175177
out_save <- readLines(system.file("templates/spelling.Rout.save", package = 'spelling'))
176178
code <- format_syntax(readLines("spelling.R"))

0 commit comments

Comments
 (0)