Skip to content

Commit

Permalink
cleaner example
Browse files Browse the repository at this point in the history
ref #485
  • Loading branch information
wibeasley committed Jul 9, 2023
1 parent c3d7a09 commit 7cd2678
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions R/validate.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,27 +105,26 @@
#'
#' d2 <- tibble::tribble(
#' ~record_id, ~redcap_event_name, ~redcap_repeat_instrument, ~redcap_repeat_instance,
#' 1L,"e1", "i1", 1L,
#' 1L,"e1", "i1", 2L,
#' 1L,"e1", "i1", 3L,
#' 1L,"e1", "i1", 4L,
#' 1L,"e1", "i2", 1L,
#' 1L,"e1", "i2", 2L,
#' 1L,"e1", "i2", 3L,
#' 1L,"e1", "i2", 4L,
#' 2L,"e1", "i1", 1L,
#' 2L,"e1", "i1", 2L,
#' 2L,"e1", "i1", 3L,
#' 2L,"e1", "i1", 4L,
#' 1L, "e1", "i1", 1L,
#' 1L, "e1", "i1", 2L,
#' 1L, "e1", "i1", 3L,
#' 1L, "e1", "i1", 4L,
#' 1L, "e1", "i2", 1L,
#' 1L, "e1", "i2", 2L,
#' 1L, "e1", "i2", 3L,
#' 1L, "e1", "i2", 4L,
#' 2L, "e1", "i1", 1L,
#' 2L, "e1", "i1", 2L,
#' 2L, "e1", "i1", 3L,
#' 2L, "e1", "i1", 4L,
#' )
#' validate_uniqueness(d2)
#'
#' d3 <- tibble::tribble(
#' ~record_id, ~redcap_event_name, ~redcap_repeat_instrument, ~redcap_repeat_instance,
#' 1L,"e1", "i1", 1L,
#' 1L,"e1", "i1", 2L,
#' 1L,"e1", "i1", 3L,
#' 1L,"e1", "i1", 3L
#' 1L, "e1", "i1", 1L,
#' 1L, "e1", "i1", 3L,
#' 1L, "e1", "i1", 3L,
#' )
#' # Throws error:
#' # validate_uniqueness(d3)
Expand Down

0 comments on commit 7cd2678

Please sign in to comment.