我正在使用虚拟机R studio版本0.98.507.0和R 3.1.1 =>我无法更新。
我想安装软件包 dplyr 但它只适用于R 3.1.2
为什么我要安装旧版本的 dplyr
当我尝试下载文件并使用
安装时install.packages("files://..)
nothings工作所以我必须直接从CRAN网站安装它。我已经能够使用
安装一些软件包install.packages("http://...")
对于 dplyr 这里返回什么
1)
我跑
path<- "http://cran.r-project.org/src/contrib/Archive/dplyr/dplyr_0.4.1.tar.gz"
install.packages(path, repos=NULL,type="source")
我有
Installing package into ‘C:/Users/I0368711/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.r-project.org/src/contrib/Archive/dplyr/dplyr_0.4.1.tar.gz'
Content type 'application/x-gzip' length 891010 bytes (870 Kb)
opened URL
downloaded 870 Kb
* installing *source* package 'dplyr' ...
** package 'dplyr' successfully unpacked and MD5 sums checked
** libs
Warning: running command 'make -f "Makevars.win" -f "Q:/R.001/R-31~1.1/etc/i386/Makeconf" -f "Q:/R.001/R-31~1.1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="dplyr.dll" OBJECTS="RcppExports.o address.o arrange.o between.o bind.o combine_variables.o distinct.o dplyr.o filter.o group_indices.o init.o join.o select.o strings_addresses.o summarise.o test.o window.o"' had status 127
ERROR: compilation failed for package 'dplyr'
* removing 'C:/Users/I0368711/Documents/R/win-library/3.1/dplyr'
Warning in install.packages :
running command '"Q:/R.001/R-31~1.1/bin/i386/R" CMD INSTALL -l "C:\Users\I0368711\Documents\R\win-library\3.1" "C:/Users/I0368711/AppData/Local/Temp/61/RtmpegYHgi/downloaded_packages/dplyr_0.4.1.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/I0368711/AppData/Local/Temp/61/RtmpegYHgi/downloaded_packages/dplyr_0.4.1.tar.gz’ had non-zero exit status
看起来R能够下载文件,但出现了问题,我不理解错误信息的一行..
我也试过了
2)
install.packages(path, repos=NULL)
错误信息是:
Installing package into ‘C:/Users/I0368711/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.r-project.org/src/contrib/Archive/dplyr/dplyr_0.4.1.tar.gz'
Content type 'application/x-gzip' length 891010 bytes (870 Kb)
opened URL
downloaded 870 Kb
Warning in install.packages :
error 1 in extracting from zip file
Warning in install.packages :
cannot open compressed file 'dplyr_0.4.1.tar.gz/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
对不起我的坏人,我尽我所能创造和理解主题
感谢您的帮助