Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装R包_R - Fatal编程技术网

安装R包

安装R包,r,R,当我尝试安装一些R软件包(如Rgraphviz)时,出现以下错误: install.packages("Rgraphviz_2.12.0.tar.gz",repos=NULL,type="source") * installing *source* package 'Rgraphviz' ... ********************************************** WARNING: this package has a configure script It

当我尝试安装一些R软件包(如Rgraphviz)时,出现以下错误:

install.packages("Rgraphviz_2.12.0.tar.gz",repos=NULL,type="source")
* installing *source* package 'Rgraphviz' ...

**********************************************
WARNING: this package has a configure script
     It probably needs manual configuration
**********************************************


** libs
gcc -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG     -        
I"d:/RCompile/CRANpkg/extralibs64/local/include"  -                                
Ilibwin/i386/include/graphviz -DHAVE_STDBOOL_H=1 -DHAVE_BOOL=1 - 
DGRAPHVIZ_MAJOR=2 -DGRAPHVIZ_MINOR=28 -DGRAPHVIZ_STATIC   -O3 -Wall  -
std=gnu99 -mtune=core2 -c LL_funcs.c -o LL_funcs.o
gcc: unrecognized option `-std=gnu99'
d:\RCompile\CRANpkg\extralibs64\local\include\.: Permission denied
make.exe: *** [LL_funcs.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-    
31~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.2/share/make/winshlib.mk"  
SHLIB="Rgraphviz.dll" OBJECTS="LL_funcs.o Rgraphviz.o RgraphvizInit.o   
agopen.o agread.o agwrite.o bezier.o buildEdgeList.o buildNodeList.o    
doLayout.o graphvizVersion.o init.o"' had status 2
ERROR: compilation failed for package 'Rgraphviz'
* removing 'C:/Program Files/R/R-3.1.2/library/Rgraphviz'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-31~1.2/bin/i386/R" CMD INSTALL -l     
"C:\Program Files\R\R-3.1.2\library" "Rgraphviz_2.12.0.tar.gz"' had status 1 
 2: In install.packages("Rgraphviz_2.12.0.tar.gz", repos = NULL, type =    
 "source") :
 installation of package ‘Rgraphviz_2.12.0.tar.gz’ had non-zero exit status

我非常感谢您的评论。

首先要做的是照顾好客户

d:\RCompile\CRANpkg\extralibs64\local\include\.: Permission denied

错误。检查该目录上的文件权限;它属于管理员吗?请确保您具有阅读权限。

您是否尝试过使用页面上的直接从bioconductor安装?是否无法进入R控制台,只需键入“install.packages”(“Rgraphviz”);选择一个起重机并安装它?这对我很有用。我可以从Bioconductor成功安装它!