Skip to content

Commit

Permalink
Comment the lines that produces error
Browse files Browse the repository at this point in the history
  • Loading branch information
llrs committed Nov 6, 2020
1 parent 775c75c commit 6f09ee0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions R/tidy-set.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ tidySet.data.frame <- function(relations) {
#' names(B) <- letters[3:7]
#' relations <- list(A, B)
#' tidySet(relations)
#' \donttest{
#' x <- list("A" = letters[1:5], "B" = LETTERS[3:7], "c" = runif(5))
#' a <- tidySet(x) # Only characters or factors are allowed as elements.
#' }
#' # Will error
#' # x <- list("A" = letters[1:5], "B" = LETTERS[3:7], "c" = runif(5))
#' # a <- tidySet(x) # Only characters or factors are allowed as elements.
tidySet.list <- function(relations) {

char <- vapply(relations, is.character, logical(1L))
Expand Down
7 changes: 3 additions & 4 deletions man/tidySet.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6f09ee0

Please sign in to comment.