Installing samr in in R 3.4

丶灬走出姿态 提交于 2019-12-11 02:47:09

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/44228394/installing-samr-in-in-r-3-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!