File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,27 @@ install-dependencies:
1010 pak::pak(ask = FALSE)
1111
1212# Check spelling of Markdown files
13- spell-check :
13+ spell-check :
1414 #!/ usr/ bin/ Rscript
1515 files <- fs::dir_ls(here::here(), recurse = TRUE, regexp = " *\\ .(md|qmd|Rmd)" )
16- spelling::spell_check_files(files)
16+ dictionary_file <- here::here(" includes/dictionary.txt" )
17+ ignore_words <- character()
18+ if (fs::file_exists(dictionary_file))
19+ ignore_words <- readLines(dictionary_file)
20+ spelling::spell_check_files(
21+ files,
22+ ignore_words,
23+ lang = " en_GB"
24+ )
1725
1826# Style all R code
19- style :
27+ style :
2028 #!/ usr/ bin/ Rscript
21- styler::style_dir(here::here())
29+ styler::style_dir(
30+ here::here(),
31+ exclude_dirs = c(" .quarto" , " _extensions" ),
32+ )
2233
2334# Build Quarto website
24- build-site :
35+ build-site :
2536 quarto render
You can’t perform that action at this time.
0 commit comments