diff --git a/.github/workflows/scheduled.yaml b/.github/workflows/scheduled.yaml new file mode 100644 index 00000000..55090678 --- /dev/null +++ b/.github/workflows/scheduled.yaml @@ -0,0 +1,31 @@ +--- +name: Scheduled 🕰️ + +on: + schedule: + - cron: '45 3 * * 0' + workflow_dispatch: + push: + branches: + - min_deps + +jobs: + dependency-test: + strategy: + fail-fast: false + matrix: + test-strategy: ["min", "release", "max"] + uses: insightsengineering/r.pkg.template/.github/workflows/verdepcheck.yaml@main + name: Dependency Test - ${{ matrix.test-strategy }} 🔢 + secrets: + REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} + GCHAT_WEBHOOK: ${{ secrets.GCHAT_WEBHOOK }} + with: + strategy: ${{ matrix.test-strategy }} + additional-env-vars: | + PKG_SYSREQS_DRY_RUN=true + branch-cleanup: + name: Branch Cleanup 🧹 + uses: insightsengineering/r.pkg.template/.github/workflows/branch-cleanup.yaml@main + secrets: + REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} diff --git a/DESCRIPTION b/DESCRIPTION index cdc6670d..dd7f8240 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -18,33 +18,45 @@ License: Apache License 2.0 | file LICENSE Depends: R (>= 4.0) Imports: - checkmate, - crayon, - lifecycle, + checkmate (>= 2.0.0), + crayon (>= 1.3.4), + lifecycle (>= 1.0.3), methods, - R6, - rlang, - shiny, - styler, + R6 (>= 2.2.0), + rlang (>= 1.1.0), + shiny (>= 1.6.0), + styler (>= 1.0.0), teal.widgets (>= 0.2.0) Suggests: - cli, - knitr, - magrittr, - rmarkdown, - testthat (>= 2.0) + cli (>= 3.4.0), + knitr (>= 1.42), + magrittr (>= 1.5.0), + testthat (>= 3.0.4) VignetteBuilder: knitr RdMacros: lifecycle Remotes: insightsengineering/teal.widgets@*release +Config/Needs/verdepcheck: + mllg/checkmate, + r-lib/crayon, + r-lib/lifecycle, + r-lib/R6, + r-lib/rlang, + rstudio/shiny, + r-lib/styler, + insightsengineering/teal.widgets, + r-lib/cli, + yihui/knitr, + tidyverse/magrittr, + r-lib/testthat Config/Needs/website: insightsengineering/nesttemplate Encoding: UTF-8 Language: en-US Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.3 -Collate: +Collate: 'chunk.R' 'chunks.R' 'get_eval_details.R' diff --git a/NEWS.md b/NEWS.md index 7509a70c..48caaad6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,8 @@ # teal.code 0.3.0.9003 +### Miscellaneous +* Specified minimal version of dependencies. + # teal.code 0.3.0 ### Major breaking change diff --git a/tests/testthat/test-qenv_eval_code.R b/tests/testthat/test-qenv_eval_code.R index 8b22ec5e..11fe1bfc 100644 --- a/tests/testthat/test-qenv_eval_code.R +++ b/tests/testthat/test-qenv_eval_code.R @@ -32,15 +32,17 @@ testthat::test_that("library have to be called separately before using function q2 <- eval_code(q1, quote(assert_number(1))) testthat::expect_identical(parent.env(q2@env), parent.env(.GlobalEnv)) - detach("package:checkmate", unload = TRUE) testthat::expect_s3_class( - eval_code( - new_qenv(), - as.expression(c( - quote(library(checkmate)), - quote(assert_number(1)) - )) - ), + { + detach("package:checkmate", unload = TRUE, force = TRUE) + eval_code( + new_qenv(), + as.expression(c( + quote(library(checkmate)), + quote(assert_number(1)) + )) + ) + }, "qenv.error" ) })