Skip to content

Commit

Permalink
Fixing R CMD check notes
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Jun 12, 2024
1 parent 90e06dd commit 9300aff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ Imports:
jsonlite,
ResultModelManager,
SqlRender (>= 1.11.1),
stringi (>= 1.7.6)
stringi (>= 1.7.6),
zip
Suggests:
CirceR (>= 1.1.1),
Eunomia,
Expand Down
12 changes: 7 additions & 5 deletions R/CohortCount.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ getCohortCounts <- function(connectionDetails = NULL,
by = "cohortId",
all.y = TRUE
)
counts <- transform(
counts,
cohortEntries = ifelse(is.na(cohortEntries), 0L, cohortEntries),
cohortSubjects = ifelse(is.na(cohortSubjects), 0L, cohortSubjects)
)
with(counts, {
transform(
counts,
cohortEntries = ifelse(is.na(cohortEntries), 0L, cohortEntries),
cohortSubjects = ifelse(is.na(cohortSubjects), 0L, cohortSubjects)
)
})
}
if (!is.null(databaseId)) {
counts$databaseId <- databaseId
Expand Down
2 changes: 1 addition & 1 deletion R/Export.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ exportCohortStatsTables <- function(connectionDetails,
cohortDatabaseSchema = cohortDatabaseSchema,
databaseId = databaseId,
snakeCaseToCamelCase = snakeCaseToCamelCase,
cohortTableName = cohortTableNames
cohortTableNames = cohortTableNames
)

for (i in 1:nrow(tablesToExport)) {
Expand Down

0 comments on commit 9300aff

Please sign in to comment.