-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (43 loc) · 1.54 KB
/
Makefile
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
56
57
pkg_pipeline: update_setup update_version\
check_package document_package build_package install_package\
githubactions_pkgdown_site
install_package:
Rscript -e "pak::pkg_install('.')"
check_package:
Rscript -e "devtools::check(error_on='error')"
fastcheck_package:
Rscript -e "devtools::check(error_on='error', args = c('--timings', '--no-tests', '--no-examples'))"
build_package:
Rscript -e "devtools::build('.')"
test_package:
Rscript --max-ppsize=500000 -e "devtools::test()"
check_build:
Rscript -e "devtools::check(error_on='error')"
Rscript -e "devtools::build('.')"
load_all_package:
Rscript -e "devtools::load_all()"
document_package:
Rscript -e "devtools::document()"
Rscript -e "devtools::build_readme()"
Rscript -e "devtools::build_vignettes()"
# Rscript -e "devtools::build_manual()"
update_version:
bash update_version.sh
githubactions_pkgdown_site:
Rscript -e "usethis::use_pkgdown()"
sed -i '/docs/d' .gitignore
Rscript -e "pkgdown::build_site(lazy=TRUE)"
Rscript -e "pkgdown::build_favicons()"
# gitcreds::gitcreds_set() if creds are missing
#Rscript -e 'usethis::use_pkgdown_github_pages()'
#Rscript -e 'usethis::use_github_pages(branch="main", path="/docs")'
#Rscript -e 'usethis::use_github_action("pkgdown")'
#githubactions_check:
# Rscript -e 'usethis::use_github_action("check-release")'
#Rscript -e 'usethis::use_github_actions()'
codetoolscheck:
Rscript -e "library(CimpleG)" \
-e "codetools::checkUsagePackage('CimpleG')" \
-e "codetools::findGlobals('CimpleG', merge=FALSE)"
update_setup:
Rscript setup_proj.R