Skip to content

Commit

Permalink
Merge 1c16a06 into d6e9dd2
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelru authored Jun 27, 2023
2 parents d6e9dd2 + 1c16a06 commit 4b5b0c9
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 21 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
38 changes: 25 additions & 13 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# teal.code 0.3.0.9005

### Miscellaneous
* Specified minimal version of dependencies.

# teal.code 0.3.0

### Major breaking change
Expand Down
18 changes: 10 additions & 8 deletions tests/testthat/test-qenv_eval_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
})
Expand Down

0 comments on commit 4b5b0c9

Please sign in to comment.