【发布时间】:2019-12-13 05:54:08
【问题描述】:
我一直在研究在 Mac 上增加 R 的内存限制的方法,但没有发现任何特别有用的方法。我尝试了Increasing memory limit in R for Mac 和R on MacOS Error: vector memory exhausted (limit reached?),但都没有成功。
我在跑步
fviz_nbclust(df, kmeans, method = "wss")
在一组 179 万行 2 列的数据上。错误表示矢量内存已用尽(达到限制?)。我试过 memory.limit() 但这在 Mac 上不起作用。
sessionInfo如下:
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] factoextra_1.0.6 ggplot2_3.2.1
loaded via a namespace (and not attached):
[1] ggrepel_0.8.1 Rcpp_1.0.3 withr_2.1.2 assertthat_0.2.1
[5] crayon_1.3.4 dplyr_0.8.3 grid_3.6.1 R6_2.4.1
[9] lifecycle_0.1.0 gtable_0.3.0 magrittr_1.5 scales_1.1.0
[13] pillar_1.4.2 rlang_0.4.1 lazyeval_0.2.2 tools_3.6.1
[17] glue_1.3.1 purrr_0.3.3 munsell_0.5.0 compiler_3.6.1
[21] pkgconfig_2.0.3 colorspace_1.4-1 tidyselect_0.2.5 tibble_2.1.3
>
有人可以帮忙吗?谢谢!!
【问题讨论】:
-
你可以参考下面的答案。 stackoverflow.com/questions/51295402/…希望它有效。
-
@Ashish 谢谢,我试过了,但对我没用...
标签: r