我正在尝试从RStudio中的github安装urbnmapr软件包,但遇到一个错误,我的PC地址限制太小,而有很多可用的内存。我已经尝试过in this thread提供的解决方案。
我正在使用devtools::install_github("UrbanInstitute/urbnmapr")
并获取以下控制台打印信息:
Downloading GitHub repo UrbanInstitute/urbnmapr@master
√ checking for file 'C:\Users\***********\AppData\Local\Temp\RtmpSOQbWK\remotes13fc75a94529\UrbanInstitute-urbnmapr-21be5c2/DESCRIPTION' ...
- preparing 'urbnmapr': (369ms)
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- looking to see if a 'data/datalist' file should be added
- building 'urbnmapr_0.0.0.9002.tar.gz' (3.8s)
* installing *source* package 'urbnmapr' ...
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'urbnmapr'
finding HTML links ... done
ccdf_labels html
counties html
counties_labels html
countydata html
get_urbn_labels html
get_urbn_map html
statedata html
states html
states_labels html
territories_counties html
territories_labels html
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
Error in utils::memory.limit(104000) :
don't be silly!: your machine has a 4Gb address limit
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'E:/Programme/R-3.5.3/library/urbnmapr'
In R CMD INSTALL
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/***********/AppData/Local/Temp/RtmpSOQbWK/file13fc71237900/urbnmapr_0.0.0.9002.tar.gz’ had non-zero exit status
从以下错误中可以看到:Error in utils::memory.limit(104000) :
don't be silly!: your machine has a 4Gb address limit
Execution halted
我的内存肯定足够大,但仍会停止安装。我的sessionInfo()
如下:
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.2 rstudioapi_0.10 magrittr_1.5 usethis_1.5.0
[5] devtools_2.0.2 pkgload_1.0.2 R6_2.4.0 rlang_0.4.0
[9] tools_3.5.3 pkgbuild_1.0.3 sessioninfo_1.1.1 cli_1.1.0
[13] withr_2.1.2 remotes_2.0.4 yaml_2.2.0 assertthat_0.2.1
[17] digest_0.6.20 rprojroot_1.3-2 crayon_1.3.4 processx_3.3.1
[21] callr_3.2.0 fs_1.3.1 ps_1.3.0 curl_3.3
[25] memoise_1.1.0 glue_1.3.1 compiler_3.5.3 desc_1.2.0
[29] backports_1.1.4 prettyunits_1.0.2
有关其他信息,我正在使用单个页面文件来增加内存限制,但如果没有它,则有足够的内存来分配超过4Gb的内存,而afaik 64位Windows 10应该能够拥有比其更高的地址限制这个。我使用支持多达64GB dRAM的Intel i7-6700K安装了32GB dRAM。 希望得到任何帮助!
答案 0 :(得分:0)
已解决,以防其他人遇到相同问题时发帖。
要将页面文件用作大数据的内存,我在.Rprofile中使用了invisible(utils::memory.limit(104000))
,删除了该文件并启动了RStudio,而没有加载我的环境(例如,其他较小的项目或新文件),而只是安装了在该会话中的软件包没有引发错误,并且安装成功。重新增加memory.limit并随后重新启动R,一切正常。