Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(tidygenomics)
  > 
  > test_check("tidygenomics")
  # A tibble: 4 x 6
       id bla   chromosome start   end cluster_id
    <int> <chr> <chr>      <dbl> <dbl>      <dbl>
  1     1 a     chr1         100   150          0
  2     2 b     chr1         120   250          0
  3     3 c     chr2         300   350          2
  4     4 d     chr1         260   450          1
  -- 1. Error: Calculating the complement of a sequence works (@test_complement.R#
  trying to get slot "className" from an object of a basic class ("character") with no slots
  Backtrace:
    1. tidygenomics::genome_complement(...)
    2. tidygenomics::genome_subtract(., x, by = by)
   10. tidygenomics:::f(d1, d2)
   11. purrr::map2_df(joined$data.x, joined$data.y, find_subtractions)
   12. purrr::map2(.x, .y, .f, ...)
   13. tidygenomics:::.f(.x[[i]], .y[[i]], ...)
   14. S4Vectors::as.data.frame.Vector(...)
   16. IRanges::as.data.frame(...)
   18. methods::as(x, "DataFrame")
   20. S4Vectors:::asMethod(object)
   21. methods::as(from, "DFrame")
   22. IRanges:::asMethod(object)
   23. S4Vectors::DataFrame(as.matrix(from), if (!is.null(from_mcols)) from_mcols else S4Vectors:::make_zero_col_DataFrame(length(from)))
   24. methods::is(listData[[1L]], getClass("Annotated"))
   25. tidygenomics::genome_complement(...)
  
  -- 2. Error: Intersection (both) of 2 data frames works as expected (@test_inter
  trying to get slot "className" from an object of a basic class ("character") with no slots
  Backtrace:
    1. tidygenomics::genome_intersect(...)
    2. tidygenomics:::index_match_fun(d1, d2)
    3. purrr::map2_df(joined$data.x, joined$data.y, find_overlaps)
    4. purrr::map2(.x, .y, .f, ...)
    5. tidygenomics:::.f(.x[[i]], .y[[i]], ...)
    7. S4Vectors::as.data.frame.Vector(IRanges::findOverlaps(r1, r2))
    9. IRanges::as.data.frame(...)
   11. methods::as(x, "DataFrame")
   12. S4Vectors:::asMethod(object)
   13. methods::as(from, "DFrame")
   14. IRanges:::asMethod(object)
   15. S4Vectors::DataFrame(as.matrix(from), if (!is.null(from_mcols)) from_mcols else S4Vectors:::make_zero_col_DataFrame(length(from)))
   16. methods::is(listData[[1L]], getClass("Annotated"))
  
  -- 3. Error: Intersection of 2 data frames works for multi-overlap ranges (@test
  trying to get slot "className" from an object of a basic class ("character") with no slots
  Backtrace:
    1. tidygenomics::genome_intersect(...)
    2. tidygenomics:::index_match_fun(d1, d2)
    3. purrr::map2_df(joined$data.x, joined$data.y, find_overlaps)
    4. purrr::map2(.x, .y, .f, ...)
    5. tidygenomics:::.f(.x[[1L]], .y[[1L]], ...)
    7. S4Vectors::as.data.frame.Vector(IRanges::findOverlaps(r1, r2))
    9. IRanges::as.data.frame(...)
   11. methods::as(x, "DataFrame")
   12. S4Vectors:::asMethod(object)
   13. methods::as(from, "DFrame")
   14. IRanges:::asMethod(object)
   15. S4Vectors::DataFrame(as.matrix(from), if (!is.null(from_mcols)) from_mcols else S4Vectors:::make_zero_col_DataFrame(length(from)))
   16. methods::is(listData[[1L]], getClass("Annotated"))
  
  -- 4. Error: Intersection of 2 data frames works for multi-overlap ranges the ot
  trying to get slot "className" from an object of a basic class ("character") with no slots
  Backtrace:
    1. tidygenomics::genome_intersect(...)
    2. tidygenomics:::index_match_fun(d1, d2)
    3. purrr::map2_df(joined$data.x, joined$data.y, find_overlaps)
    4. purrr::map2(.x, .y, .f, ...)
    5. tidygenomics:::.f(.x[[1L]], .y[[1L]], ...)
    7. S4Vectors::as.data.frame.Vector(IRanges::findOverlaps(r1, r2))
    9. IRanges::as.data.frame(...)
   11. methods::as(x, "DataFrame")
   12. S4Vectors:::asMethod(object)
   13. methods::as(from, "DFrame")
   14. IRanges:::asMethod(object)
   15. S4Vectors::DataFrame(as.matrix(from), if (!is.null(from_mcols)) from_mcols else S4Vectors:::make_zero_col_DataFrame(length(from)))
   16. methods::is(listData[[1L]], getClass("Annotated"))
  
  -- 5. Error: Intersect and findOverlap always match (@test_intersect.R#60)  ----
  trying to get slot "className" from an object of a basic class ("character") with no slots
  Backtrace:
    1. base::as.data.frame(IRanges::findOverlaps(r1, r2))
    2. S4Vectors::as.data.frame.Vector(IRanges::findOverlaps(r1, r2))
    4. IRanges::as.data.frame(...)
    6. methods::as(x, "DataFrame")
    7. S4Vectors:::asMethod(object)
    8. methods::as(from, "DFrame")
    9. IRanges:::asMethod(object)
   10. S4Vectors::DataFrame(as.matrix(from), if (!is.null(from_mcols)) from_mcols else S4Vectors:::make_zero_col_DataFrame(length(from)))
   11. methods::is(listData[[1L]], getClass("Annotated"))
  
  -- 6. Error: Joining with closest works as expected (@test_join_closest.R#17)  -
  trying to get slot "className" from an object of a basic class ("character") with no slots
  Backtrace:
    1. tidygenomics::genome_join_closest(...)
    2. fuzzyjoin::fuzzy_join(...)
    3. tidygenomics:::index_match_fun(d1, d2)
    4. purrr::map2_df(joined$data.x, joined$data.y, find_closest)
    5. purrr::map2(.x, .y, .f, ...)
    6. tidygenomics:::.f(.x[[i]], .y[[i]], ...)
    9. IRanges::distanceToNearest(r1, r2, select = select)
   10. IRanges:::.local(x, subject, ...)
   11. S4Vectors::Hits(...)
   12. S4Vectors:::.make_mcols(...)
   13. S4Vectors::DataFrame(..., check.names = FALSE)
   14. methods::is(listData[[1L]], getClass("Annotated"))
  
  -- 7. Error: Subtraction of 2 data frames works as expected (@test_subtract.R#18
  trying to get slot "className" from an object of a basic class ("character") with no slots
  Backtrace:
    1. tidygenomics::genome_subtract(...)
    2. tidygenomics:::f(d1, d2)
    3. purrr::map2_df(joined$data.x, joined$data.y, find_subtractions)
    4. purrr::map2(.x, .y, .f, ...)
    5. tidygenomics:::.f(.x[[i]], .y[[i]], ...)
    7. S4Vectors::as.data.frame.Vector(...)
    9. IRanges::as.data.frame(...)
   11. methods::as(x, "DataFrame")
   12. S4Vectors:::asMethod(object)
   13. methods::as(from, "DFrame")
   14. IRanges:::asMethod(object)
   15. S4Vectors::DataFrame(as.matrix(from), if (!is.null(from_mcols)) from_mcols else S4Vectors:::make_zero_col_DataFrame(length(from)))
   16. methods::is(listData[[1L]], getClass("Annotated"))
  
  -- 8. Error: Edge cases of subtraction of 2 data frames works as expected (@test
  trying to get slot "className" from an object of a basic class ("character") with no slots
  Backtrace:
    1. tidygenomics::genome_subtract(...)
    2. tidygenomics:::f(d1, d2)
    3. purrr::map2_df(joined$data.x, joined$data.y, find_subtractions)
    4. purrr::map2(.x, .y, .f, ...)
    5. tidygenomics:::.f(.x[[1L]], .y[[1L]], ...)
    7. S4Vectors::as.data.frame.Vector(...)
    9. IRanges::as.data.frame(...)
   11. methods::as(x, "DataFrame")
   12. S4Vectors:::asMethod(object)
   13. methods::as(from, "DFrame")
   14. IRanges:::asMethod(object)
   15. S4Vectors::DataFrame(as.matrix(from), if (!is.null(from_mcols)) from_mcols else S4Vectors:::make_zero_col_DataFrame(length(from)))
   16. methods::is(listData[[1L]], getClass("Annotated"))
  
  -- 9. Error: during subtraction the intervals are not unified (@test_subtract.R#
  trying to get slot "className" from an object of a basic class ("character") with no slots
  Backtrace:
    1. tidygenomics::genome_subtract(...)
    2. tidygenomics:::f(d1, d2)
    3. purrr::map2_df(joined$data.x, joined$data.y, find_subtractions)
    4. purrr::map2(.x, .y, .f, ...)
    5. tidygenomics:::.f(.x[[1L]], .y[[1L]], ...)
    7. S4Vectors::as.data.frame.Vector(...)
    9. IRanges::as.data.frame(...)
   11. methods::as(x, "DataFrame")
   12. S4Vectors:::asMethod(object)
   13. methods::as(from, "DFrame")
   14. IRanges:::asMethod(object)
   15. S4Vectors::DataFrame(as.matrix(from), if (!is.null(from_mcols)) from_mcols else S4Vectors:::make_zero_col_DataFrame(length(from)))
   16. methods::is(listData[[1L]], getClass("Annotated"))
  
  == testthat results  ===========================================================
  [ OK: 7 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 9 ]
  1. Error: Calculating the complement of a sequence works (@test_complement.R#12) 
  2. Error: Intersection (both) of 2 data frames works as expected (@test_intersect.R#17) 
  3. Error: Intersection of 2 data frames works for multi-overlap ranges (@test_intersect.R#29) 
  4. Error: Intersection of 2 data frames works for multi-overlap ranges the other way around (@test_intersect.R#46) 
  5. Error: Intersect and findOverlap always match (@test_intersect.R#60) 
  6. Error: Joining with closest works as expected (@test_join_closest.R#17) 
  7. Error: Subtraction of 2 data frames works as expected (@test_subtract.R#18) 
  8. Error: Edge cases of subtraction of 2 data frames works as expected (@test_subtract.R#38) 
  9. Error: during subtraction the intervals are not unified (@test_subtract.R#57) 
  
  Error: testthat unit tests failed
  Execution halted