Skip to content

Commit 1b63c45

Browse files
committed
Quick fix for GH actions
1 parent 3f9def2 commit 1b63c45

4 files changed

Lines changed: 22 additions & 19 deletions

File tree

vignettes/workflow.Rmd

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ knitr::opts_chunk$set(
1212
collapse = TRUE,
1313
comment = "#>"
1414
)
15-
is_ghactions <- tolower(Sys.getenv("GITHUB_ACTIONS")) == "true"
16-
is_ci <- tolower(Sys.getenv("CI")) %in% c("true", "1", "yes")
17-
18-
is_ghactions <- is_ghactions || is_ci
15+
# is_ghactions <- tolower(Sys.getenv("GITHUB_ACTIONS")) == "true"
16+
# is_ci <- tolower(Sys.getenv("CI")) %in% c("true", "1", "yes")
17+
#
18+
# is_ghactions <- is_ghactions || is_ci
19+
is_ghactions <- TRUE
1920
2021
```
2122

@@ -125,7 +126,7 @@ DT::datatable(param_grid)
125126

126127
### Run Model
127128

128-
```{r run_model, eval = FALSE}
129+
```{r run_model, eval = !is_ghactions}
129130
# Number of cores for parallel processing (or: automatic)
130131
#future::plan(future::multisession, workers = parallel::detectCores() - 1)
131132

vignettes/workflow_120min_40mm.Rmd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ knitr::opts_chunk$set(
1212
collapse = TRUE,
1313
comment = "#>"
1414
)
15-
is_ghactions <- tolower(Sys.getenv("GITHUB_ACTIONS")) == "true"
16-
is_ci <- tolower(Sys.getenv("CI")) %in% c("true", "1", "yes")
17-
18-
is_ghactions <- is_ghactions || is_ci
15+
# is_ghactions <- tolower(Sys.getenv("GITHUB_ACTIONS")) == "true"
16+
# is_ci <- tolower(Sys.getenv("CI")) %in% c("true", "1", "yes")
17+
#
18+
# is_ghactions <- is_ghactions || is_ci
19+
is_ghactions <- TRUE
1920
2021
```
2122

vignettes/workflow_eisenstadt-2005.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ knitr::opts_chunk$set(
1212
collapse = TRUE,
1313
comment = "#>"
1414
)
15-
is_ghactions <- tolower(Sys.getenv("GITHUB_ACTIONS")) == "true"
16-
is_ci <- tolower(Sys.getenv("CI")) %in% c("true", "1", "yes")
17-
18-
is_ghactions <- is_ghactions || is_ci
19-
#is_ghactions <- FALSE
15+
# is_ghactions <- tolower(Sys.getenv("GITHUB_ACTIONS")) == "true"
16+
# is_ci <- tolower(Sys.getenv("CI")) %in% c("true", "1", "yes")
17+
#
18+
# is_ghactions <- is_ghactions || is_ci
19+
is_ghactions <- TRUE
2020
```
2121

2222
### Define Paths and Scenarios

vignettes/workflow_v2.Rmd

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ knitr::opts_chunk$set(
1212
collapse = TRUE,
1313
comment = "#>"
1414
)
15-
is_ghactions <- tolower(Sys.getenv("GITHUB_ACTIONS")) == "true"
16-
is_ci <- tolower(Sys.getenv("CI")) %in% c("true", "1", "yes")
17-
18-
is_ghactions <- is_ghactions || is_ci
15+
# is_ghactions <- tolower(Sys.getenv("GITHUB_ACTIONS")) == "true"
16+
# is_ci <- tolower(Sys.getenv("CI")) %in% c("true", "1", "yes")
17+
#
18+
# is_ghactions <- is_ghactions || is_ci
19+
is_ghactions <- TRUE
1920
2021
```
2122

@@ -137,7 +138,7 @@ htmlwidgets::saveWidget(DT::datatable(param_grid), "param_grid.html")
137138

138139
### Run Model
139140

140-
```{r run_model, eval = TRUE}
141+
```{r run_model, eval = !is_ghactions}
141142
# Number of cores for parallel processing (or: automatic)
142143
#future::plan(future::multisession, workers = parallel::detectCores() - 1)
143144

0 commit comments

Comments
 (0)