在R中安装存档包时遇到问题

时间:2014-07-31 03:45:44

标签: r install.packages

我想安装" ReadImages"在R中打包。这个包已经存档,所以我下载了tar.gz文件。我已经尝试了几乎所有提到的步骤来从源文件安装包。但我所有的尝试都是徒劳的。需要帮助

我曾尝试过以下方法

> library(devtools)
> setwd("C:\\Users\\Downloads\\packages")
> install("ReadImages_0.1.3.3.tar.gz")
Error: ReadImages_0.1.3.3.tar.gz is not a directory


> setwd("C:\\Users\\Downloads\\packages\\ReadImages_0.1.3.3\\ReadImages\\R")
> for (i in list.files()){source(i)}
> library(ReadImages)
Error in library(ReadImages) : there is no package called ‘ReadImages’


> install.packages("C:\\Users\\Downloads\\packages\\ReadImages_0.1.3.3.tar.gz", type="source", repos=NULL) 
Installing package(s) into ‘C:/Users/Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
* installing *source* package 'ReadImages' ...
** package 'ReadImages' successfully unpacked and MD5 sums checked
ERROR: configuration failed for package 'ReadImages'
* removing 'C:/Users/Documents/R/win-library/2.15/ReadImages'
Warning messages:
1: running command 'C:/PROGRA~1/R/R-215~1.1/bin/i386/R CMD INSTALL -l "C:/Users/Documents/R/win-library/2.15"   "C:/Users/Downloads/packages/ReadImages_0.1.3.3.tar.gz"' had status 1 
2: In install.packages("C:\\Users\\Downloads\\packages\\ReadImages_0.1.3.3.tar.gz",  :
  installation of package ‘C:/Users/Downloads/packages/ReadImages_0.1.3.3.tar.gz’ had non-zero exit status
> 

提前致谢

0 个答案:

没有答案