Nat*_*sta 2 installation r stringi
在 Windows 10 上,RStudio。我尝试过使用命令 install.packages,但它总是出现以下消息:
\n> install.packages ("stringi")\n There is a binary version available but the source version is later:\n binary source needs_compilation\nstringi 1.4.6 1.5.3 TRUE\n\ninstalling the source package \xe2\x80\x98stringi\xe2\x80\x99\n\ntrying URL \'https://cran.rstudio.com/src/contrib/stringi_1.5.3.tar.gz\'\nContent type \'application/x-gzip\' length 7293930 bytes (7.0 MB)\ndownloaded 7.0 MB\n\n* installing *source* package \'stringi\' ...\n** package \'stringi\' successfully unpacked and MD5 sums checked\n** using staged installation\n** libs\nC:/Users/Natusha/Google Drive (natusha.alirr@gmail.com)/R/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"C:/Users/Natusha/GOOGLE~2.COM/R/R-36~1.1/include" -DNDEBUG -I. -Iicu61/ -Iicu61/unicode -Iicu61/common -Iicu61/i18n -DU_STATIC_IMPLEMENTATION -DU_COMMON_IMPLEMENTATION -DU_I18N_IMPLEMENTATION -DUCONFIG_USE_LOCAL -DU_TOOLUTIL_IMPLEMENTATION -DNDEBUG -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 -DU_USE_STRTOD_L=0 -O2 -Wall -mtune=generic -c stri_pad.cpp -o stri_pad.o\nsh: -c: line 0: syntax error near unexpected token `(\'\nsh: -c: line 0: `C:/Users/Natusha/Google Drive (natusha.alirr@gmail.com)/R/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"C:/Users/Natusha/GOOGLE~2.COM/R/R-36~1.1/include" -DNDEBUG -I. -Iicu61/ -Iicu61/unicode -Iicu61/common -Iicu61/i18n -DU_STATIC_IMPLEMENTATION -DU_COMMON_IMPLEMENTATION -DU_I18N_IMPLEMENTATION -DUCONFIG_USE_LOCAL -DU_TOOLUTIL_IMPLEMENTATION -DNDEBUG -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 -DU_USE_STRTOD_L=0 -O2 -Wall -mtune=generic -c stri_pad.cpp -o stri_pad.o\'\nmake: *** [C:/Users/Natusha/GOOGLE~2.COM/R/R-36~1.1/etc/x64/Makeconf:215: stri_pad.o] Error 1\nERROR: compilation failed for package \'stringi\'\n* removing \'C:/Users/Natusha/Google Drive (natusha.alirr@gmail.com)/R/R-3.6.1/library/stringi\'\n* restoring previous \'C:/Users/Natusha/Google Drive (natusha.alirr@gmail.com)/R/R-3.6.1/library/stringi\'\nWarning in install.packages :\n installation of package \xe2\x80\x98stringi\xe2\x80\x99 had non-zero exit status\n\nThe downloaded source packages are in\n \xe2\x80\x98C:\\Users\\Natusha\\AppData\\Local\\Temp\\RtmpuSXwbu\\downloaded_packages\xe2\x80\x99\nRun Code Online (Sandbox Code Playgroud)\n我能做些什么?我尝试直接下载文件夹并将其粘贴到库中,但它不起作用。\n我也尝试过
\ninstall.packages("stringi", type = "source")\n\noptions(install.packages.check.source = "no")\nRun Code Online (Sandbox Code Playgroud)\n但出现了同样的消息。\n有人可以帮助我吗?
\n