请问这个是怎么回事?
> install.packages("gdata")
试开URL’https://cran.rstudio.com/bin/macosx/contrib/4.2/gdata_2.18.0.1.tgz'
Content type 'application/x-gzip' length 1220241 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
下载的二进制程序包在
/var/folders/_1/9ts2x2vd3cjf5whfzkfkdh_c0000gn/T//RtmpaWy9ym/downloaded_packages里
> library("gdata")
gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
载入程辑包:‘gdata’
The following object is masked from ‘package:stats’:
nobs
The following object is masked from ‘package:utils’:
object.size
The following object is masked from ‘package:base’:
startsWith
运行:install("gdata") 后,显示:
install.packages("gdata")
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
package ‘gdata’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.1:
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/PACKAGES'
怎们弄哇?是版本不对吗?
Error in findPerl(verbose = verbose) :
perl executable not found. Use perl= argument to specify the correct path.
Error in file.exists(tfn) : 'file'参数不对
确认删除