Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specify min deps #104

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
2c29823
specify min deps
pawelru Jan 31, 2023
dc2cb21
Merge branch 'main' into min_deps
pawelru Jan 31, 2023
1d44005
Run R min deps check
walkowif Feb 8, 2023
89d1e76
Test
walkowif Feb 8, 2023
3812495
Test
walkowif Feb 8, 2023
dcd6fdb
Test
walkowif Feb 9, 2023
4bca5cc
Test
walkowif Feb 9, 2023
a961e59
Test
walkowif Feb 9, 2023
76c8c1b
vbump testthat for g++ compatibility
pawelru Feb 9, 2023
adb5443
Merge branch 'main' into min_deps
pawelru Feb 9, 2023
6fbf7d3
empty commit
pawelru Feb 9, 2023
c18bc12
empty commit
pawelru Feb 9, 2023
ca49377
add remotes
pawelru Feb 15, 2023
a1f9300
add release reference
pawelru Feb 16, 2023
3b64f39
Merge branch 'main' into min_deps
pawelru Feb 16, 2023
d2ea2fd
Test inputs
walkowif Feb 22, 2023
a6f6c6f
Remove debug
walkowif Feb 22, 2023
33f2ac1
empty commit
pawelru Feb 22, 2023
789ec2f
empty commit
pawelru Feb 22, 2023
b4999d9
empty commit
pawelru Mar 30, 2023
53a95d9
vbump styler, knitr; rm rmarkdown
pawelru Mar 30, 2023
c9935ed
empty commit
pawelru Mar 30, 2023
3b0b5aa
empty commit
pawelru Apr 3, 2023
d2201e2
empty commit
pawelru Apr 3, 2023
25a0947
vbump knitr
pawelru Apr 3, 2023
421edd9
Rename workflow
walkowif Apr 3, 2023
841284e
Add separate workflow
walkowif Apr 4, 2023
676eb91
Empty
walkowif Apr 4, 2023
f050e3d
Test
walkowif Apr 4, 2023
0fdb6e4
Empty
walkowif Apr 4, 2023
308279c
Trigger min, release and max dependency tests
walkowif Apr 4, 2023
d5f1ad6
Trigger workflow
walkowif Apr 4, 2023
89361cc
Trigger workflow
walkowif Apr 4, 2023
8fe822b
Trigger workflow
walkowif Apr 4, 2023
47e5f80
Trigger workflow
walkowif Apr 4, 2023
199ccf7
fail-fast false
walkowif Apr 4, 2023
9a75600
Empty
walkowif Apr 4, 2023
ddbeb83
Trigger workflow
walkowif Apr 5, 2023
1805cc6
Trigger workflow
walkowif Apr 5, 2023
6fab199
Trigger workflow
walkowif Apr 5, 2023
3fc029c
Trigger workflow
walkowif Apr 5, 2023
8264f7f
Trigger workflow
walkowif Apr 5, 2023
2a0daa5
Update workflow
walkowif Apr 5, 2023
4e440a3
Test notificationx
walkowif Apr 5, 2023
49c1e80
Update branch
walkowif Apr 5, 2023
afa1136
Add gchat webhook
walkowif Apr 6, 2023
3b49547
Update
walkowif Apr 6, 2023
4bd9b34
Rename
walkowif Apr 7, 2023
28bd644
Workflow update
walkowif Apr 11, 2023
ace2c05
Update
walkowif Apr 19, 2023
7b83a7f
Merge branch 'main' into min_deps
Melkiades May 5, 2023
e3d30d6
put up news; temp workflow changes
pawelru May 24, 2023
f78c778
Merge branch 'main' into min_deps
pawelru May 24, 2023
4648f05
config/needs/verdepcheck
pawelru Jun 9, 2023
ce921a2
Update workflow
walkowif Jun 27, 2023
1c16a06
Update workflow
walkowif Jun 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.9003

### 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