@@ -17,6 +17,8 @@ has_internet <- tryCatch(
1717 !is.null(curl::nslookup("github.com", error = FALSE)),
1818 error = function(e) FALSE
1919)
20+ ## Epigenomic data functions require remote bigwig access (not available on Windows)
21+ can_run <- has_internet && .Platform$OS.type != "windows"
2022```
2123
2224``` R
@@ -32,7 +34,7 @@ library(`r pkg`)
3234
3335### Import data
3436
35- ``` {r nott2019_import, eval=has_internet }
37+ ``` {r nott2019_import, eval=can_run }
3638superenhancers <- echoannot::get_NOTT2019_superenhancer_interactome()
3739enhancers_promoters <- echoannot::NOTT2019_get_promoter_interactome_data()
3840peaks <- echoannot::NOTT2019_get_epigenomic_peaks()
@@ -41,15 +43,15 @@ peaks <- echoannot::NOTT2019_get_epigenomic_peaks()
4143
4244### Plot
4345
44- ``` {r nott2019_plot, eval=has_internet }
46+ ``` {r nott2019_plot, eval=can_run }
4547dat <- echodata::BST1
4648histo_out <- echoannot::NOTT2019_epigenomic_histograms(dat = dat)
4749```
4850
4951In addition to the plot object,
5052tables of both raw read ranges and called peaks are included in the output list.
5153
52- ``` {r nott2019_tables, eval=has_internet }
54+ ``` {r nott2019_tables, eval=can_run }
5355knitr::kable(head(histo_out$data$raw))
5456knitr::kable(head(histo_out$data$peaks))
5557```
@@ -64,7 +66,7 @@ knitr::kable(head(histo_out$data$peaks))
6466
6567### Import data
6668
67- ``` {r corces2020_import, eval=has_internet }
69+ ``` {r corces2020_import, eval=can_run }
6870bulkATACseq_peaks <- echoannot::get_CORCES2020_bulkATACseq_peaks()
6971cicero_coaccessibility <- echoannot::get_CORCES2020_cicero_coaccessibility()
7072hichip_fithichip_loop_calls <- echoannot::get_CORCES2020_hichip_fithichip_loop_calls()
0 commit comments