Skip to content

Commit c7a9430

Browse files
authored
Merge pull request OHDSI#1096 from OHDSI/develop
Release v3.3.0
2 parents 03c40ab + 90fffb8 commit c7a9430

File tree

365 files changed

+24658
-20521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

365 files changed

+24658
-20521
lines changed

.github/workflows/R_CMD_check_Hades.yaml

+10-8
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
on:
44
push:
55
branches:
6-
- '**'
6+
- 'develop'
7+
- 'main'
78
pull_request:
89
branches:
9-
- '**'
10+
- 'main'
1011

1112
name: R-CMD-check
1213

@@ -50,6 +51,7 @@ jobs:
5051
CDM5_SPARK_USER: ${{ secrets.CDM5_SPARK_USER }}
5152
CDM5_SPARK_PASSWORD: ${{ secrets.CDM5_SPARK_PASSWORD }}
5253
CDM5_SPARK_CONNECTION_STRING: ${{ secrets.CDM5_SPARK_CONNECTION_STRING }}
54+
IS_GITHUB_ACTIONS: true
5355

5456
steps:
5557
- uses: actions/checkout@v3
@@ -85,27 +87,27 @@ jobs:
8587
check-dir: '"check"'
8688

8789
- name: Upload source package
88-
if: success() && runner.os == 'macOS' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
89-
uses: actions/upload-artifact@v2
90+
if: success() && runner.os == 'Windows' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
91+
uses: actions/upload-artifact@v4
9092
with:
9193
name: package_tarball
9294
path: check/*.tar.gz
9395

9496
- name: Install covr
95-
if: runner.os == 'macOS'
97+
if: runner.os == 'Windows'
9698
run: |
9799
install.packages("covr")
98100
shell: Rscript {0}
99101

100102
- name: Test coverage
101-
if: runner.os == 'macOS'
103+
if: runner.os == 'Windows'
102104
run: covr::codecov()
103105
shell: Rscript {0}
104106

105107
Release:
106108
needs: R-CMD-Check
107109

108-
runs-on: macOS-latest
110+
runs-on: windows-latest
109111

110112
env:
111113
GH_TOKEN: ${{ secrets.GH_TOKEN }}
@@ -156,7 +158,7 @@ jobs:
156158
157159
- name: Download package tarball
158160
if: ${{ env.new_version != '' }}
159-
uses: actions/download-artifact@v2
161+
uses: actions/download-artifact@v4.1.7
160162
with:
161163
name: package_tarball
162164

.github/workflows/R_CMD_check_main_weekly.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
config:
17-
- {os: macOS-latest, r: 'release'}
17+
- {os: windows-latest, r: 'release'}
1818

1919
env:
2020
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
@@ -43,6 +43,7 @@ jobs:
4343
CDM5_SPARK_USER: ${{ secrets.CDM5_SPARK_USER }}
4444
CDM5_SPARK_PASSWORD: ${{ secrets.CDM5_SPARK_PASSWORD }}
4545
CDM5_SPARK_CONNECTION_STRING: ${{ secrets.CDM5_SPARK_CONNECTION_STRING }}
46+
IS_GITHUB_ACTIONS: true
4647

4748
steps:
4849
- uses: actions/checkout@v3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
2+
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
- '!develop'
8+
- '!main'
9+
pull_request:
10+
branches:
11+
- "**"
12+
- '!main'
13+
- "!develop"
14+
15+
name: R-CMD-check-sqlite-only
16+
17+
jobs:
18+
R-CMD-check:
19+
runs-on: ${{ matrix.config.os }}
20+
21+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
config:
27+
- {os: windows-latest, r: 'release'}
28+
- {os: macOS-latest, r: 'release'}
29+
30+
env:
31+
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
32+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
33+
RSPM: ${{ matrix.config.rspm }}
34+
SKIP_DB_TESTS: "TRUE"
35+
36+
steps:
37+
- uses: actions/checkout@v3
38+
39+
- uses: r-lib/actions/setup-r@v2
40+
with:
41+
r-version: ${{ matrix.config.r }}
42+
43+
- uses: r-lib/actions/setup-tinytex@v2
44+
45+
- uses: r-lib/actions/setup-pandoc@v2
46+
47+
- name: Install system requirements
48+
if: runner.os == 'Linux'
49+
run: |
50+
sudo apt-get install -y libssh-dev
51+
Rscript -e 'install.packages("remotes")'
52+
while read -r cmd
53+
do
54+
eval sudo $cmd
55+
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
56+
57+
- uses: r-lib/actions/setup-r-dependencies@v2
58+
with:
59+
extra-packages: any::rcmdcheck
60+
needs: check
61+
62+
- uses: r-lib/actions/check-r-package@v2
63+
with:
64+
args: 'c("--no-manual", "--as-cran")'
65+
build_args: 'c("--compact-vignettes=both")'
66+
error-on: '"warning"'
67+
check-dir: '"check"'
68+
69+
- name: Upload source package
70+
if: success() && runner.os == 'macOS' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: package_tarball
74+
path: check/*.tar.gz
75+
76+
- name: Install covr
77+
if: runner.os == 'macOS'
78+
run: |
79+
install.packages("covr")
80+
shell: Rscript {0}
81+
82+
- name: Test coverage
83+
if: runner.os == 'macOS'
84+
run: covr::codecov()
85+
shell: Rscript {0}
86+
87+
Release:
88+
needs: R-CMD-Check
89+
90+
runs-on: macOS-latest
91+
92+
env:
93+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
94+
95+
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
96+
97+
steps:
98+
99+
- uses: actions/checkout@v3
100+
with:
101+
fetch-depth: 0
102+
103+
- name: Check if version has increased
104+
run: |
105+
echo "new_version="$(perl compare_versions --tag) >> $GITHUB_ENV
106+
107+
- name: Display new version number
108+
if: ${{ env.new_version != '' }}
109+
run: |
110+
echo "${{ env.new_version }}"
111+
112+
- name: Create release
113+
if: ${{ env.new_version != '' }}
114+
uses: actions/create-release@v1
115+
env:
116+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
117+
with:
118+
tag_name: ${{ env.new_version }}
119+
release_name: Release ${{ env.new_version }}
120+
body: |
121+
See NEWS.md for release notes.
122+
draft: false
123+
prerelease: false
124+
125+
- uses: r-lib/actions/setup-r@v2
126+
if: ${{ env.new_version != '' }}
127+
128+
- name: Install drat
129+
if: ${{ env.new_version != '' }}
130+
run: |
131+
install.packages('drat')
132+
shell: Rscript {0}
133+
134+
- name: Remove any tarballs that already exists
135+
if: ${{ env.new_version != '' }}
136+
run: |
137+
rm -f *.tar.gz
138+
139+
- name: Download package tarball
140+
if: ${{ env.new_version != '' }}
141+
uses: actions/download-artifact@v4.1.7
142+
with:
143+
name: package_tarball
144+
145+
- name: Push to drat
146+
if: ${{ env.new_version != '' }}
147+
run: |
148+
bash deploy.sh
149+
150+
- name: Push to BroadSea
151+
if: ${{ env.new_version != '' }}
152+
run: |
153+
curl --data "build=true" -X POST https://registry.hub.docker.com/u/ohdsi/broadsea-methodslibrary/trigger/f0b51cec-4027-4781-9383-4b38b42dd4f5/

DESCRIPTION

+33-38
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: CohortDiagnostics
22
Type: Package
33
Title: Diagnostics for OHDSI Cohorts
4-
Version: 3.2.5
5-
Date: 2023-29-11
4+
Version: 3.3.0
5+
Date: 2024-22-10
66
Authors@R: c(
77
person("Jamie", "Gilbert", email = "gilbert@ohdsi.org", role = c("aut", "cre")),
88
person("Gowtham", "Rao", role = c("aut")),
@@ -20,50 +20,45 @@ Description: CohortDiagnostics is an R utility package for the development and e
2020
Through the identification of errors, CohortDiagnostics enables the comparison of multiple candidate cohort
2121
definitions across one or more data sources, facilitating reproducible research.
2222
Depends:
23-
DatabaseConnector (>= 5.0.0),
24-
FeatureExtraction (>= 3.2.0),
25-
R (>= 4.1.0)
23+
DatabaseConnector (>= 5.0.0),
24+
FeatureExtraction (>= 3.7.1),
25+
R (>= 4.1.0)
2626
Imports:
27-
Andromeda (>= 0.6.0),
28-
ResultModelManager (>= 0.5.2),
29-
checkmate,
30-
clock,
31-
digest,
32-
dplyr (>= 1.0.0),
33-
methods,
34-
ParallelLogger (>= 3.0.0),
35-
readr (>= 2.1.0),
36-
RJSONIO,
37-
rlang,
38-
SqlRender (>= 1.9.0),
39-
stringr,
40-
tidyr (>= 1.2.0),
41-
CohortGenerator (>= 0.8.0),
42-
remotes
27+
Andromeda (>= 0.6.0),
28+
ResultModelManager (>= 0.5.2),
29+
checkmate,
30+
clock,
31+
digest,
32+
dplyr (>= 1.0.0),
33+
methods,
34+
ParallelLogger (>= 3.0.0),
35+
readr (>= 2.1.0),
36+
RJSONIO,
37+
rlang,
38+
SqlRender (>= 1.9.0),
39+
stringr,
40+
tidyr (>= 1.2.0),
41+
CohortGenerator (>= 0.10.0),
42+
remotes,
43+
scales
4344
Suggests:
44-
Eunomia,
45-
ROhdsiWebApi (>= 1.2.0),
46-
RSQLite (>= 2.2.1),
47-
scales,
48-
testthat,
49-
withr,
50-
zip,
51-
knitr,
52-
shiny,
53-
OhdsiShinyModules
45+
Eunomia,
46+
RSQLite (>= 2.2.1),
47+
testthat,
48+
withr,
49+
zip,
50+
knitr,
51+
shiny,
52+
OhdsiShinyModules,
53+
rsconnect,
54+
yaml
5455
Remotes:
55-
ohdsi/Eunomia,
56-
ohdsi/FeatureExtraction,
57-
ohdsi/ResultModelManager,
58-
ohdsi/ROhdsiWebApi,
59-
ohdsi/CirceR,
60-
ohdsi/CohortGenerator,
6156
ohdsi/OhdsiShinyModules
6257
License: Apache License
6358
VignetteBuilder: knitr
6459
URL: https://ohdsi.github.io/CohortDiagnostics, https://github.com/OHDSI/CohortDiagnostics
6560
BugReports: https://github.com/OHDSI/CohortDiagnostics/issues
66-
RoxygenNote: 7.2.3
61+
RoxygenNote: 7.3.2
6762
Encoding: UTF-8
6863
Language: en-US
6964
StagedInstall: no

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
export(createDiagnosticsExplorerZip)
44
export(createMergedResultsFile)
55
export(createResultsDataModel)
6+
export(deployPositConnectApp)
67
export(executeDiagnostics)
78
export(getCdmDataSourceInformation)
89
export(getCohortCounts)

NEWS.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
CohortDiagnostics 3.3.0
2+
=======================
3+
4+
Changes:
5+
6+
1. Added function to make deployment to posit connect servers easier
7+
8+
2. Added ability to use CohortGenerator sample functionality to executeDiagnostics which speeds up execution for very
9+
large cohort definitions
10+
11+
3. Requires use of FeatureExtraction 3.4.0 to support new API
12+
13+
4. Removed annotation tables from result schema script
14+
115
CohortDiagnostics 3.2.5
216
=======================
317
Bug Fixes:

0 commit comments

Comments
 (0)