Skip to content

Commit

Permalink
r check and description updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Katy Sadowski committed May 21, 2024
1 parent 8ad5185 commit 040c2ee
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,5 @@ Suggests:
ggplot2,
Eunomia,
R.utils
Remotes:
ohdsi/Eunomia
RoxygenNote: 7.2.2
RoxygenNote: 7.3.1
Encoding: UTF-8
2 changes: 1 addition & 1 deletion R/runCheck.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' Internal function to run and process each data quality check.
#'
#' @param checkDescription The description of the data quality check
#' @param tablechecks A dataframe containing the table checks
#' @param tableChecks A dataframe containing the table checks
#' @param fieldChecks A dataframe containing the field checks
#' @param conceptChecks A dataframe containing the concept checks
#' @param connectionDetails A connectionDetails object for connecting to the CDM database
Expand Down
2 changes: 1 addition & 1 deletion R/view.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ viewDqDashboard <- function(jsonPath, launch.browser = NULL, display.mode = NULL

# Borrowed from devtools:
# https://github.com/hadley/devtools/blob/ba7a5a4abd8258c52cb156e7b26bb4bf47a79f0b/R/utils.r#L44
is_installed <- function(pkg, version = 0) {
is_installed <- function(pkg, version = "0") {
installed_version <-
tryCatch(
utils::packageVersion(pkg),
Expand Down
4 changes: 2 additions & 2 deletions man/dot-runCheck.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-helpers.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
library(testthat)

test_that("listDqChecks works", {
test_that("Installation check works", {
result <- DataQualityDashboard:::is_installed("SqlRender")
expect_true(result)
expect_null(DataQualityDashboard:::ensure_installed("SqlRender"))
Expand Down

0 comments on commit 040c2ee

Please sign in to comment.