Skip to content

Commit 48170f0

Browse files
authored
Merge pull request #13 from darwin-eu/release_1_0_4
release 1.0.4
2 parents 36036db + 234004d commit 48170f0

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: DrugUtilisation
22
Title: Summarise Patient-Level Drug Utilisation in Data Mapped to the OMOP
33
Common Data Model
4-
Version: 1.0.3
4+
Version: 1.0.4
55
Authors@R: c(
66
person(
77
"Martí", "Català", email = "[email protected]",

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# DrugUtilisation 1.0.4
2+
3+
* Fix plotDrugUtilisation combining different cdm_name by @catalamarti
4+
15
# DrugUtilisation 1.0.3
26

37
* Skip some tests for regression in duckdb by @catalamarti

R/plots.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ plotDrugUtilisation <- function(result,
222222
cli::cli_abort()
223223
}
224224
vars <- getVariables(result)
225-
x <- vars[!vars %in% c(asCharacterFacet(facet), result)]
225+
x <- vars[!vars %in% asCharacterFacet(facet)]
226226
if (length(x) == 0) {
227227
result <- result |>
228228
omopgenerics::tidy() |>
@@ -288,7 +288,7 @@ plotDrugUtilisation <- function(result,
288288
result <- result |>
289289
dplyr::filter(.data$estimate_name %in% .env$est)
290290
vars <- getVariables(result)
291-
x <- vars[!vars %in% c(asCharacterFacet(facet), result)]
291+
x <- vars[!vars %in% asCharacterFacet(facet)]
292292
if (length(x) == 0) {
293293
result <- result |>
294294
omopgenerics::tidy() |>
@@ -535,6 +535,7 @@ getVariables <- function(res) {
535535
dplyr::distinct() |>
536536
omopgenerics::splitAll() |>
537537
omopgenerics::addSettings() |>
538+
dplyr::select(!"result_id") |>
538539
as.list() |>
539540
purrr::map(unique) |>
540541
purrr::keep(\(x) length(x) > 1) |>

0 commit comments

Comments
 (0)