首先是直接安装install.pakages反正是没安上,
所以自己在archive上手动下载就行了,这个地址Index of /src/contrib/Archive/CopyDetect
然后在r里面的install里选择下载到的本地地址,再安装,反正是报了个什么错又,在最后加上“source”就行了,like this:
install.packages("XXX.tar.gz", repos = NULL, type="source")
参考文章:r - install.packages : type = ="both" cannot be used with 'repos =NULL' 中出现错误 - IT工具网