在R 3.4中安装samr [英] Installing samr in in R 3.4

查看:309
本文介绍了在R 3.4中安装samr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在R v3.4 MacOS sierra中安装samr软件包时遇到问题.我收到此警告消息:

I am having issues in installing the samr package in R v3.4 MacOS sierra. I get this warning message:

  "Package which is only available in source form, and may need compilation of
   C/C++/Fortran: ‘samr’
 Do you want to attempt to install these from sources?
 y/n: y
 installing the source package ‘samr’

trying URL 'https://cran.rstudio.com/src/contrib/samr_2.0.tar.gz'
Content type 'application/x-gzip' length 36702 bytes (35 KB)
==================================================
downloaded 35 KB

* installing *source* package ‘samr’ ...
** libs
gfortran   -fPIC  -g -O2  -c rankcol.f -o rankcol.o
make: gfortran: No such file or directory
make: *** [rankcol.o] Error 1
ERROR: compilation failed for package ‘samr’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/samr’
Warning in install.packages :
  installation of package ‘samr’ had non-zero exit status

有人有克服这个想法的想法吗?

Does anybody has an idea to overcome this?

推荐答案

非常感谢,我为macOs sierra下载了gofortran https://gcc.gnu.org/wiki/GFortranBinaries#MacOS 似乎现在可以正常工作

Thanks so much, I dwonloaded gofortran for macOs sierra https://gcc.gnu.org/wiki/GFortranBinaries#MacOS and it seems to work now

这篇关于在R 3.4中安装samr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆