From abe703d8d591cc7e038a470daa9b2c7162b4641c Mon Sep 17 00:00:00 2001 From: oscarospina Date: Wed, 4 Aug 2021 16:31:12 -0400 Subject: [PATCH] fix plot_STclusters --- .DS_Store | Bin 16388 -> 16388 bytes R/plot_STclusters.R | 3 ++- vignettes/spatialGE_troubleshoot.Rmd | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100755 vignettes/spatialGE_troubleshoot.Rmd diff --git a/.DS_Store b/.DS_Store index 73e5109f5298e5736b25c035b94355d37ccc82bd..636ee5927e0cb7f554f440c178c5b6271415f1e0 100644 GIT binary patch delta 17 YcmZo^U~Fk%+)yb#v2fC6Zi%1j06f?R)c^nh delta 19 acmZo^U~Fk%+)ydb$T+cZ;%07%pXvZZdj{43 diff --git a/R/plot_STclusters.R b/R/plot_STclusters.R index 5f195ff..cf4ab53 100755 --- a/R/plot_STclusters.R +++ b/R/plot_STclusters.R @@ -24,7 +24,8 @@ # plot_STclusters <- function(x, plot_who=NULL, purity=F, color_pal='light', visium=T){ - require(ggplot2) + require('ggplot2') + require('magrittr') if(is.null(plot_who)){ subjs <- (1:length(x@st_clusters$clust_dfs)) diff --git a/vignettes/spatialGE_troubleshoot.Rmd b/vignettes/spatialGE_troubleshoot.Rmd new file mode 100755 index 0000000..c8e0251 --- /dev/null +++ b/vignettes/spatialGE_troubleshoot.Rmd @@ -0,0 +1,24 @@ +--- +title: "Troubleshooting" +output: rmarkdown::html_vignette +vignette: > + %\VignetteIndexEntry{spatialGE_tutorial} + %\VignetteEngine{knitr::rmarkdown} + %\VignetteEncoding{UTF-8} +--- + +```{r, include = FALSE} +knitr::opts_chunk$set( + collapse = TRUE, + comment = "#>" +) +``` + +### When using `readRDS` to load an STList, I get 'Error: vector memory exhausted'. What can I do? +This error results from R's default memoery limits. Provided your computer has +enough memory to hold an STList in memory, this error message can be overridden by +typing in a Terminal (Mac OS): +``` +echo 'R_MAX_VSIZE=100Gb' >> ~/.Renviron +``` +Then, close and re-open R and try to load the STList again. \ No newline at end of file