Skip to content

Commit d2e7e92

Browse files
Merge pull request #652 from OHDSI/develop
Develop
2 parents f9cb17b + 5609499 commit d2e7e92

76 files changed

Lines changed: 127 additions & 146 deletions

File tree

Some content is hidden

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

.github/workflows/R_CMD_check_Hades.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ jobs:
9090
with:
9191
r-version: ${{ matrix.config.r }}
9292

93+
- name: Configure Java for R (macOS)
94+
if: runner.os == 'macOS'
95+
shell: bash
96+
run: |
97+
export JAVA_HOME=$(/usr/libexec/java_home)
98+
echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
99+
R CMD javareconf
100+
93101
- uses: r-lib/actions/setup-tinytex@v2
94102

95103
- uses: r-lib/actions/setup-pandoc@v2

.github/workflows/R_CMD_check_main_weekly.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
- uses: actions/checkout@v4
6565

6666
- name: Setup Java
67+
if: runner.os != 'Linux'
6768
uses: actions/setup-java@v4
6869
with:
6970
distribution: 'corretto'
@@ -73,6 +74,14 @@ jobs:
7374
with:
7475
r-version: ${{ matrix.config.r }}
7576

77+
- name: Configure Java for R (macOS)
78+
if: runner.os == 'macOS'
79+
shell: bash
80+
run: |
81+
export JAVA_HOME=$(/usr/libexec/java_home)
82+
echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
83+
R CMD javareconf
84+
7685
- uses: r-lib/actions/setup-tinytex@v2
7786

7887
- uses: r-lib/actions/setup-pandoc@v2

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: DataQualityDashboard
22
Type: Package
33
Title: Execute and View Data Quality Checks on OMOP CDM Database
4-
Version: 2.8.5
5-
Date: 2026-01-17
4+
Version: 2.8.6
5+
Date: 2026-01-22
66
Authors@R: c(
77
person("Katy", "Sadowski", email = "sadowski@ohdsi.org", role = c("aut", "cre")),
88
person("Clair", "Blacketer", role = c("aut")),
@@ -15,7 +15,7 @@ Authors@R: c(
1515
)
1616
Author: Katy Sadowski [aut, cre], Clair Blacketer [aut], Maxim Moinat [aut], Ajit Londhe [aut], Anthony Sena [aut], Anthony Molinaro [aut], Frank DeFalco [aut], Pavel Grafkin [aut]
1717
Maintainer: Katy Sadowski <sadowski@ohdsi.org>
18-
Description: An R package for assessing data quality in Observational Medical Outcomes Partnership Common Data Model (OMOP CDM) databases. Executes data quality checks and provides an R Shiny application to view the results.
18+
Description: Assesses data quality in Observational Medical Outcomes Partnership Common Data Model (OMOP CDM) databases. Executes data quality checks and provides an R `shiny` application to view the results.
1919
License: Apache License 2.0
2020
Config/build/clean-inst-doc: FALSE
2121
VignetteBuilder: knitr

NAMESPACE

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,5 @@ importFrom(stringr,regex)
2828
importFrom(stringr,str_detect)
2929
importFrom(tidyselect,all_of)
3030
importFrom(tools,file_path_sans_ext)
31-
importFrom(utils,install.packages)
32-
importFrom(utils,menu)
3331
importFrom(utils,packageVersion)
3432
importFrom(utils,write.table)

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
DataQualityDashboard 2.8.6
2+
==========================
3+
This release contains minor changes needed to support CRAN submission.
4+
15
DataQualityDashboard 2.8.5
26
==========================
37
This release contains updates to the GitHub Actions workflow files to resolve some issues with workflow errors.

R/view.R

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@
2424
#'
2525
#' @return NULL (launches Shiny application)
2626
#'
27-
#' @importFrom utils menu install.packages
2827
#' @importFrom jsonlite toJSON parse_json
2928
#'
3029
#' @export
3130
viewDqDashboard <- function(jsonPath, launch.browser = NULL, display.mode = NULL, ...) {
32-
ensure_installed("shiny")
31+
if (!requireNamespace("shiny", quietly = TRUE)) {
32+
stop("The 'shiny' package must be installed to use this function. Please install it with: install.packages(\"shiny\")", call. = FALSE)
33+
}
3334

3435
Sys.setenv(jsonPath = jsonPath)
3536
appDir <- system.file("shinyApps", package = "DataQualityDashboard")
@@ -44,40 +45,3 @@ viewDqDashboard <- function(jsonPath, launch.browser = NULL, display.mode = NULL
4445

4546
shiny::runApp(appDir = appDir, launch.browser = launch.browser, display.mode = display.mode, ...)
4647
}
47-
48-
49-
# Borrowed from devtools:
50-
# https://github.com/hadley/devtools/blob/ba7a5a4abd8258c52cb156e7b26bb4bf47a79f0b/R/utils.r#L44
51-
#' @return A logical value indicating whether the package is installed
52-
#' @keywords internal
53-
is_installed <- function(pkg, version = "0") {
54-
installed_version <-
55-
tryCatch(
56-
utils::packageVersion(pkg),
57-
error = function(e) {
58-
NA
59-
}
60-
)
61-
return(!is.na(installed_version) && installed_version >= version)
62-
}
63-
64-
# Borrowed and adapted from devtools:
65-
# https://github.com/hadley/devtools/blob/ba7a5a4abd8258c52cb156e7b26bb4bf47a79f0b/R/utils.r#L74
66-
#' @return NULL (installs package if needed or stops with error)
67-
#' @keywords internal
68-
ensure_installed <- function(pkg) {
69-
if (!is_installed(pkg)) {
70-
msg <-
71-
paste0(sQuote(pkg), " must be installed for this functionality.")
72-
if (interactive()) {
73-
message(msg, "\nWould you like to install it?")
74-
if (menu(c("Yes", "No")) == 1) {
75-
install.packages(pkg)
76-
} else {
77-
stop(msg, call. = FALSE)
78-
}
79-
} else {
80-
stop(msg, call. = FALSE)
81-
}
82-
}
83-
}

docs/404.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/AddNewCheck.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/CheckStatusDefinitions.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/DataQualityDashboard.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)