Running examples in 'valr-Ex.R' failed
The error most likely occurred in:

> ### Name: bed_intersect
> ### Title: Identify intersecting intervals.
> ### Aliases: bed_intersect
> 
> ### ** Examples
> 
> x <- trbl_interval(
+   ~chrom, ~start, ~end,
+   'chr1', 25,      50,
+   'chr1', 100,     125
+ )
> 
> y <- trbl_interval(
+   ~chrom, ~start, ~end,
+   'chr1', 30,     75
+ )
> 
> bed_glyph(bed_intersect(x, y))
> bed_glyph(bed_intersect(x, y, invert = TRUE))
> 
> x <- trbl_interval(
+   ~chrom, ~start, ~end,
+   "chr1", 100,    500,
+   "chr2", 200,    400,
+   "chr2", 300,    500,
+   "chr2", 800,    900
+ )
> 
> y <- trbl_interval(
+   ~chrom, ~start, ~end, ~value,
+   "chr1", 150,    400,  100,
+   "chr1", 500,    550,  100,
+   "chr2", 230,    430,  200,
+   "chr2", 350,    430,  300
+ )
> 
> bed_intersect(x, y)
# A tibble: 6 x 7
  chrom start.x end.x start.y end.y value.y .overlap
  <chr>   <dbl> <dbl>   <dbl> <dbl>   <dbl>    <int>
1  chr1     100   500     150   400     100      250
2  chr1     100   500     500   550     100        0
3  chr2     200   400     230   430     200      170
4  chr2     200   400     350   430     300       50
5  chr2     300   500     230   430     200      130
6  chr2     300   500     350   430     300       80
> 
> bed_intersect(x, y, invert = TRUE)
# A tibble: 1 x 3
  chrom start   end
  <chr> <dbl> <dbl>
1  chr2   800   900
> 
> # start and end of each overlapping interval
> res <- bed_intersect(x, y)
> dplyr::mutate(res, start = pmax(start.x, start.y),
+                    end = pmin(end.x, end.y))
# A tibble: 6 x 9
  chrom start.x end.x start.y end.y value.y .overlap start   end
  <chr>   <dbl> <dbl>   <dbl> <dbl>   <dbl>    <int> <dbl> <dbl>
1  chr1     100   500     150   400     100      250   150   400
2  chr1     100   500     500   550     100        0   500   500
3  chr2     200   400     230   430     200      170   230   400
4  chr2     200   400     350   430     300       50   350   400
5  chr2     300   500     230   430     200      130   300   430
6  chr2     300   500     350   430     300       80   350   430
> 
> z <- trbl_interval(
+   ~chrom, ~start, ~end, ~value,
+   "chr1", 150,    400,  100,
+   "chr1", 500,    550,  100,
+   "chr2", 230,    430,  200,
+   "chr2", 750,    900,  400
+ )
> 
> bed_intersect(x, y, z)
Error: Variable context not set
Execution halted