Cannot open compressed file when install R packages(安装R语言是提示不能解压)
原本写这个的时候,偷懒就写了英文版,今天添加一下中文翻译
When package is not installed successfully, check if package downloaded successful, if not, manually download package and put under certain folders, and install wherever you want
有些时候安装R语言的包会提示不成功,无法解压文件,那么我们要做的首先是检查包是否下载成功,如果没有的话,不要紧,可以自己到官网下载包,并且放在自己制定的文件夹下,然后在进行安装。
Sample:例如:
> install.packages("C:/***/downloaded_packages/igraph_1.1.2.zip")
file folder could be a self defined package, and even install destination can be defined as ,
这个文件夹可以是自己定义的,另外,安装的目标路劲也可以指定
eg. i created a folder under my E disk, and i want to install under D disk, which is SQL server R service installation folder, below script is for this case
例如,我在自己的E盘根目录创建了一个文件夹,也叫downloaded_packages,我把自己下载的zip格式的包放在了这个文件夹里,安装到D盘,安装语句就可以写成如下格式:
> install.packages("E:/downloaded_packages/igraph_1.1.2.zip","D:\\Program Files\\Microsoft SQL Server\\MSSQL13.MSSQLSERVER\\R_SERVICES\\library")