Skip to content

Commit 08960f2

Browse files
committed
chore(sync): 🔨 synced local 'justfile' with remote '_common/justfile-r'
1 parent 07c4a9b commit 08960f2

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

justfile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)