-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJustfile
47 lines (35 loc) · 922 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
alias docs := document
alias spell := spellcheck
export NOT_CRAN := "1"
export RCMDCHECK_ERROR_ON := "note"
prep: style document spellcheck lint check
spellcheck:
Rscript -e "spelling::spell_check_package()"
test:
Rscript -e "testthat::test_local()"
document:
Rscript -e "roxygen2::roxygenize()"
check:
Rscript -e "rcmdcheck::rcmdcheck()"
style:
Rscript -e "styler::style_pkg()"
lint:
Rscript -e "lintr::lint_package()"
update_wordlist:
Rscript -e "spelling::update_wordlist(confirm = FALSE)"
clean:
git restore --staged .
git restore .
git reset --hard HEAD
git status
update:
git stash push --include-untracked
git switch main
git pull --ff-only
git switch -
git rebase main
git push --force-with-lease --force-if-includes
# Build and open vignette
vignette which='RtGam':
Rscript -e "devtools::build_rmd('vignettes/{{which}}.Rmd')"
open 'vignettes/{{which}}.html'