Skip to content

Commit

Permalink
removed code changes that are out of scope
Browse files Browse the repository at this point in the history
  • Loading branch information
azimov committed Sep 26, 2024
1 parent 04abd50 commit 46a13cb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions R/CohortRelationship.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#' @param targetCohortIds A vector of one or more Cohort Ids for use as target cohorts.
#'
#' @param comparatorCohortIds A vector of one or more Cohort Ids for use as feature/comparator cohorts.
#' @param targetComparatorPairs A vector of one or more Cohort Ids for use as feature/comparator cohorts.
#'
#' @param relationshipDays A dataframe with two columns startDay and endDay representing periods of time to compute relationship
#'
Expand All @@ -45,9 +44,8 @@ runCohortRelationshipDiagnostics <-
cohortDatabaseSchema = NULL,
tempEmulationSchema = NULL,
cohortTable = "cohort",
targetCohortIds = NULL,
comparatorCohortIds = NULL,
targetComparatorPairs = NULL,
targetCohortIds,
comparatorCohortIds,
relationshipDays) {
startTime <- Sys.time()

Expand All @@ -68,16 +66,14 @@ runCohortRelationshipDiagnostics <-
any.missing = FALSE,
min.len = 1,
unique = TRUE,
add = errorMessage,
null.ok = TRUE
add = errorMessage
)
checkmate::assertIntegerish(
x = comparatorCohortIds,
lower = 0,
any.missing = FALSE,
min.len = 1,
unique = TRUE,
add = errorMessage
unique = TRUE
)
checkmate::reportAssertions(collection = errorMessage)

Expand Down

0 comments on commit 46a13cb

Please sign in to comment.