Skip to content

Commit

Permalink
Update summariseOmopTable() dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
martaalcalde committed Jun 10, 2024
1 parent 11dca1f commit bbf4974
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Suggests:
DBI,
duckdb,
here,
testthat (>= 3.0.0)
Config/testthat/edition: 3
Config/testthat/parallel: true
Expand Down
2 changes: 1 addition & 1 deletion R/summariseOmopTable.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ addVariables <- function(x, variables) {
by = "source"
) |>
dplyr::mutate(
vocabulary = dplyr::if_else(is.na(vocabulary), "No matching concept", vocabulary)
vocabulary = dplyr::if_else(is.na(.data$vocabulary), "No matching concept", .data$vocabulary)
) |>
dplyr::rename("source_concept" = "source", "source" = "vocabulary")
}
Expand Down
4 changes: 2 additions & 2 deletions man/summariseOmopTable.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-summariseOmopTable.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test_that("summariseOmopTable() works", {
expect_no_error(summariseOmopTable(cdm$condition_occurrence))
expect_no_error(summariseOmopTable(cdm$drug_exposure))
expect_no_error(summariseOmopTable(cdm$procedure_occurrence))
expect_no_error(summariseOmopTable(cdm$device_exposure))
expect_error(summariseOmopTable(cdm$device_exposure))
expect_no_error(summariseOmopTable(cdm$measurement))
expect_no_error(summariseOmopTable(cdm$observation))
expect_error(summariseOmopTable(cdm$death))
Expand Down

0 comments on commit bbf4974

Please sign in to comment.