需要帮助为R 3.3.3安装VGAM软件包

时间:2019-05-19 02:47:07

标签: r package install.packages vgam

无法采用上述三种方法为R的旧版本(v3.3.3)手动安装旧软件包(VGAM)以便在平台上工作:x86_64-apple-darwin13.4.0(64位)

我试图从中得出的关于该主题的先前主题:

Manually Downloading and Installing Packages in R

"installation of package 'FILE_PATH' had non-zero exit status" in R

我正在运行Mac OS 10.9.5,因此必须运行R v3.3.3。因此,我无法加载VGAM软件包的当前版本,因此我一直在尝试并无法通过使用下面的代码来安装VGAM软件包的先前版本,但是所有这三种尝试均导致退出状态为非零。看来gfortran存在问题?不知道这是什么或做什么。

install.packages('VGAM_1.0-2.tar.gz', lib = "/Users/benny/Google Drive/SEDGWICK PROJECT GRANIVORES/R", repos = NULL, dependencies = TRUE)
download.file('https://cran.r-project.org/src/contrib/Archive/VGAM/VGAM_1.0-0.tar.gz', 
              f <- tempfile())
untar(f, exdir=tempdir())
file.copy(file.path(tempdir(), '.RData'), 'VGAM.RData')
# the above copies the .RData file to a file called VGAM.RData in your current 
# working directory.
load('VGAM.RData')
download.file('https://cran.r-project.org/src/contrib/Archive/VGAM/VGAM_1.0-0.tar.gz',
              f <- tempfile())
untar(f, exdir=tempdir())
load(file.path(tempdir(), '.RData'))

我希望成功安装VGAM软件包,但是对于每个代码块,我分别收到以下错误消息:

>* installing *source* package ‘VGAM’ ...
** package ‘VGAM’ successfully unpacked and MD5 sums checked
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c caqo3.c -o caqo3.o
gfortran-4.8   -fPIC  -g -O2  -c cqof.f -o cqof.o
make: gfortran-4.8: No such file or directory
make: *** [cqof.o] Error 1
ERROR: compilation failed for package ‘VGAM’
* removing ‘/Users/benny/Google Drive/SEDGWICK PROJECT GRANIVORES/R/VGAM’
* restoring previous ‘/Users/benny/Google Drive/SEDGWICK PROJECT GRANIVORES/R/VGAM’
Warning in install.packages :
  installation of package ‘VGAM_1.0-2.tar.gz’ had non-zero exit status

对于第二个块/尝试,file.copy()方法仅产生“ FALSE”输出,并且似乎不能像我想要的那样正确地创建“ VGAM.RData”文件:

[1] FALSE

> load('VGAM.RData')

cannot open compressed file 'VGAM.RData', probable reason 'No such file or directory'
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection

第三个块/尝试返回以下错误:

cannot open compressed file '/var/folders/03/9d3s2ktx79l_wm7n2w9vmcdh0000gn/T//Rtmpdb04UI/.RData', probable reason 'No such file or directory'
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection

0 个答案:

没有答案
相关问题