Skip to content

Commit

Permalink
runCohortGenerator bug fix & remove R4.2.3 tests (#171)
Browse files Browse the repository at this point in the history
* Preserve data.frame format

* Remove R4.2.3 tests
  • Loading branch information
anthonysena authored Jun 28, 2024
1 parent 667f5c8 commit fdbf8e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/R_CMD_check_Hades.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
fail-fast: false
matrix:
config:
- {os: windows-latest, r: '4.2.3', rtools: '42', rspm: "https://cloud.r-project.org"}
- {os: macOS-latest, r: '4.2.3', rtools: '42', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-20.04, r: '4.2.3', rtools: '42', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: windows-latest, r: 'release', rtools: '', rspm: "https://cloud.r-project.org"}
- {os: macOS-latest, r: 'release', rtools: '', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-20.04, r: 'release', rtools: '', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
Expand Down
2 changes: 1 addition & 1 deletion R/CohortCount.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ getCohortCounts <- function(connectionDetails = NULL,
}
counts <- merge(
x = counts,
y = cohortDefinitionSet[cohortDefinitionSet$cohortId %in% cohortIds, ],
y = cohortDefinitionSet[cohortDefinitionSet$cohortId %in% cohortIds, , drop = FALSE],
by = "cohortId",
all.y = TRUE
)
Expand Down
2 changes: 1 addition & 1 deletion R/RunCohortGeneration.R
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ generateAndExportNegativeControls <- function(connection,
cohortDatabaseSchema = cohortDatabaseSchema,
cohortTable = cohortTableNames$cohortTable,
databaseId = databaseId,
cohortDefinitionSet = negativeControlOutcomeCohortSet[,c("cohortId")]
cohortDefinitionSet = negativeControlOutcomeCohortSet[,c("cohortId"), drop = FALSE]
)
}

Expand Down

0 comments on commit fdbf8e9

Please sign in to comment.