-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathjustfile
55 lines (44 loc) · 970 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@_default:
just --list --unsorted
# Run all recipes
run-all: install-package-dependencies document spell-check style lint test build-site check install-package
# Install package dependencies
install-package-dependencies:
#!/usr/bin/Rscript
pak::pak(ask = FALSE)
# Run document generators
document:
#!/usr/bin/Rscript
devtools::document()
# Run tests
test:
#!/usr/bin/Rscript
devtools::test()
# Check spelling
spell-check:
#!/usr/bin/Rscript
devtools::spell_check()
# Check URLs
url-check:
#!/usr/bin/Rscript
urlchecker::url_check()
# Style all R code
style:
#!/usr/bin/Rscript
styler::style_pkg()
# Run linter
lint:
#!/usr/bin/Rscript
devtools::lint()
# Build pkgdown website
build-site:
#!/usr/bin/Rscript
pkgdown::build_site()
# Run local CRAN checks
check:
#!/usr/bin/Rscript
devtools::check()
# Install prodigenr as a package
install-package: install-package-dependencies
#!/usr/bin/Rscript
devtools::install()