forked from ropensci/ruODK
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtic.R
47 lines (44 loc) · 1.89 KB
/
tic.R
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
# installs dependencies, runs R CMD check, runs covr::codecov()
do_package_checks(
error_on="error",
args = c(
"--no-manual",
"--as-cran",
"--no-vignettes",
"--no-build-vignettes",
"--no-multiarch"
)
)
# failed: ‘terra’, ‘sf’, ‘raster’, ‘leafpop’, ‘leaflet’, ‘satellite’, ‘leafem’
if(ci_get_env("matrix.config.os") == "macOS-latest"){
get_stage("install") %>%
add_step(step_install_cran("proj4")) %>%
add_step(step_install_github("r-spatial/sf", dependencies = TRUE, force = TRUE)) %>%
add_step(step_install_cran("raster")) %>%
add_step(step_install_cran("leaflet")) %>%
add_step(step_install_cran("leafpop")) %>%
add_step(step_install_github("r-spatial/leafem", dependencies = TRUE)) %>%
add_step(step_install_cran("terra"))
}
if(ci_get_env("matrix.config.os") == "ubuntu-20.04"){
get_stage("install") %>%
# add_step(step_install_github(c("tidyverse/readr"))) %>%
# https://stackoverflow.com/q/61875754/2813717 - install proj4
add_step(step_install_cran("proj4")) %>%
# sf install fixed by cpp11
add_step(step_install_github("r-lib/cpp11", dependencies = TRUE)) %>%
add_step(step_install_github("r-spatial/sf", dependencies = TRUE, force = TRUE)) %>%
add_step(step_install_github("r-spatial/mapview", dependencies = TRUE)) %>%
add_step(step_install_github("r-spatial/leafem", dependencies = TRUE)) %>%
# add_step(step_install_cran("listviewer")) %>%
# libicui8n not found: fixed by stringi forced install
add_step(step_install_github("gagolews/stringi", dependencies = TRUE, force = TRUE))
}
# # rOpenSci build their own docs, see build at
# # https://dev.ropensci.org/job/ruODK/lastBuild/console
#
# if (ci_on_ghactions() && ci_has_env("BUILD_PKGDOWN")) {
# # creates pkgdown site and pushes to gh-pages branch
# # only for the runner with the "BUILD_PKGDOWN" env var set
# do_pkgdown()
# }