无法在R-4.0.5上安装dplyr
正在尝试在R-4.0.5上安装无法在R-4.0.5上安装dplyr,r,dplyr,R,Dplyr,正在尝试在R-4.0.5上安装dplyr 当我安装.packages(“dplyr”)时 我得到以下错误 Installing package into ‘C:/Users/Pragyaditya Das/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified) also installing the dependencies ‘purrr’, ‘generics’, ‘tidyselect’ There is a binary ver
dplyr
当我安装.packages(“dplyr”)时
我得到以下错误
Installing package into ‘C:/Users/Pragyaditya Das/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘purrr’, ‘generics’, ‘tidyselect’
There is a binary version available but the source version is later:
binary source needs_compilation
dplyr 1.0.5 1.0.6 TRUE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/purrr_0.3.4.zip'
Content type 'application/zip' length 429582 bytes (419 KB)
downloaded 419 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/generics_0.1.0.zip'
Content type 'application/zip' length 71044 bytes (69 KB)
downloaded 69 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tidyselect_1.1.1.zip'
Content type 'application/zip' length 204234 bytes (199 KB)
downloaded 199 KB
package ‘purrr’ successfully unpacked and MD5 sums checked
package ‘generics’ successfully unpacked and MD5 sums checked
package ‘tidyselect’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Pragyaditya Das\AppData\Local\Temp\RtmpOAwWYv\downloaded_packages
installing the source package ‘dplyr’
trying URL 'https://cran.rstudio.com/src/contrib/dplyr_1.0.6.tar.gz'
Content type 'application/x-gzip' length 954401 bytes (932 KB)
downloaded 932 KB
* installing *source* package 'dplyr' ...
** package 'dplyr' successfully unpacked and MD5 sums checked
** using staged installation
** libs
*** arch - i386
"c:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-40~1.5/include" -DNDEBUG -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c chop.cpp -o chop.o
sh: c:/rtools40/mingw32/bin/g++: No such file or directory
make: *** [C:/PROGRA~1/R/R-40~1.5/etc/i386/Makeconf:229: chop.o] Error 127
ERROR: compilation failed for package 'dplyr'
* removing 'C:/Users/Pragyaditya Das/Documents/R/win-library/4.0/dplyr'
Warning in install.packages :
installation of package ‘dplyr’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Pragyaditya Das\AppData\Local\Temp\RtmpOAwWYv\downloaded_packages’
请帮帮我。TIA。我解决了这个问题,在安装程序搜索时,我命名了默认的
Rtools
安装文件夹和ming_w32
文件夹
因此,所做的更改是:
在Rtools安装的根文件夹中将Rtools
重命名为rtools40
&将ming_w32
重命名为mingw32
这就解决了问题