Error: vector memory exhausted (limit reached?) R 3.5.0 macOS

前端 未结 3 2067
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-01 03:57

I\'ve been working for a while with a number of large files containing gene expression data, and I\'ve recently run into an issue with loading that data into R, after upgrad

3条回答
  •  眼角桃花
    2020-12-01 04:36

    A solution for those who might be unfamiliar with the command line can be found here:

    In short, the solution is to use the usethis package.

    usethis::edit_r_environ() will open the .Renviron which is in your home directory. This .Renviron affects all Rstudio work

    usethis::edit_r_environ("project") will open an .Renviron local to your project. Changes made to this file only affect work done in that particular Rstudio project.

    Once open, the R_MAX_VSIZE var can be set.

    The linked page also links to this blog which describes R's startup process in great detail.

提交回复
热议问题