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

> ### Name: PeakError
> ### Title: PeakError
> ### Aliases: PeakError
> 
> ### ** Examples
> 
> x <- seq(5, 85, by=5)
> peaks <- rbind(Peaks("chr2", x, x+3),
+                Peaks("chr3", c(25, 38, 57), c(33, 54, 75)),
+                Peaks("chr4", c(5, 32, 38, 65), c(15, 35, 55, 85)),
+                Peaks("chr5", c(12, 26, 56, 75), c(16, 54, 59, 85)))
> regions <- NULL
> for(chr in 1:5){
+   regions <- rbind(regions, {
+     data.frame(chrom=paste0("chr", chr),
+                chromStart=c(10, 30, 50, 70),
+                chromEnd=c(20, 40, 60, 80),
+                annotation=c("noPeaks", "peakStart", "peakEnd", "peaks"))
+   })
+ }
> err <- PeakError(peaks, regions)
> ann.colors <-
+   c(noPeaks="#f6f4bf",
+     peakStart="#ffafaf",
+     peakEnd="#ff4c4c",
+     peaks="#a445ee")
> library(ggplot2)
> ggplot()+
+   geom_rect(aes(xmin=chromStart+1/2, xmax=chromEnd+1/2,
+                 ymin=-1, ymax=1,
+                 fill=annotation,
+                 linetype=fn.status,
+                 size=fp.status),
+             data=err, color="black")+
+   scale_y_continuous("", breaks=NULL)+
+   scale_linetype_manual(values=c("false negative"="dotted", correct="solid"))+
+   scale_size_manual(values=c("false positive"=3, correct=1))+
+   scale_fill_manual(values=ann.colors, breaks=names(ann.colors))+
+   facet_grid(chrom ~ .)+
+   theme_bw()+
+   guides(fill=guide_legend(order=1),
+          linetype=guide_legend(order=2, override.aes=list(fill="white")),
+          size=guide_legend(order=3, override.aes=list(fill="white")))+
+   theme(panel.margin=grid::unit(0, "cm"))+
+   geom_segment(aes(chromStart+1/2, 1/2, xend=chromEnd+1/2, yend=1/2),
+                data=peaks, color="deepskyblue", size=2)+
+   scale_x_continuous("position on chromosome",
+                      breaks=seq(10, 90, by=10))+
+   geom_text(aes(base, -1/2, label="N"), data.frame(base=10:90),
+             color="deepskyblue")
Warning: `panel.margin` is deprecated. Please use `panel.spacing` property instead
Error in namespaceExport(ns, exports) : 
  undefined exports: %s!=%, %s!==%, %s+%, %s<%, %s<=%, %s==%, %s===%, %s>%, %s>=%, %stri!=%, %stri!==%, %stri+%, %stri<%, %stri<=%, %stri==%, %stri===%, %stri>%, %stri>=%, stri_datetime_add<-, stri_sub<-, stri_subset<-, stri_subset_charclass<-, stri_subset_coll<-, stri_subset_fixed<-, stri_subset_regex<-, stri_c, stri_c_list, stri_cmp, stri_cmp_eq, stri_cmp_equiv, stri_cmp_ge, stri_cmp_gt, stri_cmp_le, stri_cmp_lt, stri_cmp_neq, stri_cmp_nequiv, stri_compare, stri_conv, stri_count, stri_count_boundaries, stri_count_charclass, stri_count_coll, stri_count_fixed, stri_count_regex, stri_count_words, stri_datetime_add, stri_datetime_create, stri_datetime_fields, stri_datetime_format, stri_datetime_fstr, stri_datetime_now, stri_datetime_parse, stri_datetime_symbols, stri_detect, stri_detect_charclass, stri_detect_coll, stri_detect_fixed, stri_detect_regex, stri_dup, stri_duplicated, stri_duplicated_any, stri_enc_detect, stri_enc_detect2, stri_enc_fromutf32, stri_enc_get, stri_enc_inf
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted