在Windows中安装RGraphviz时出现问题
我已经阅读了RGraphviz页面上的自述文件,并查看了R帮助列表和此处的许多问题,但我仍然没有找到无法在R 2.14.0上安装RGraphviz包的原因在Windows中安装RGraphviz时出现问题,r,graphviz,R,Graphviz,我已经阅读了RGraphviz页面上的自述文件,并查看了R帮助列表和此处的许多问题,但我仍然没有找到无法在R 2.14.0上安装RGraphviz包的原因 我已经下载并安装了Graphviz 2.20.3(尽管开始菜单上说它是2.21) 我已将Graphviz bin文件夹添加到我的用户路径中 strsplit(Sys.getenv(“路径”),“;”) [[1]] [1] “C:\ProgramFiles\R\R-2.14.0\bin\x64” [2] “C:\Program Files\Co
[2] “C:\Program Files\Common Files\Microsoft Shared\Windows Live”
[3] “C:\Program Files(x86)\Common Files\Microsoft Shared\Windows Live”
[4] “C:\Windows\system32”
[5] “C:\Windows”
[6] “C:\Windows\System32\Wbem”
[7] “C:\Windows\System32\WindowsPowerShell\v1.0\”
[8] “C:\Program Files\Intel\WiFi\bin\”
[9] “C:\Program Files\Common Files\Intel\WirelessCommon\”
[10] “C:\Program Files\Intel\DMIX”
[11] “C:\Program Files(x86)\NTRU Cryptosystems\NTRU TCG软件堆栈\bin\”
[12] “C:\Program Files\NTRU Cryptosystems\NTRU TCG软件堆栈\bin\”
[13] “C:\Program Files(x86)\Intel\Services\IPT\”
[14] “C:\Program Files\Dell\Dell Data Protection\Access\Advanced\Wave\Gemalto\Access Client\v5\” [15] “C:\Program Files(x86)\Windows Live\Shared”
[16] “c:\ProgramFiles(x86)\Microsoft SQL Server\100\Tools\Binn\”
[17] “c:\Program Files\Microsoft SQL Server\100\Tools\Binn\”
[18] “c:\Program Files\Microsoft SQL Server\100\DTS\Binn\”
[19] “C:\ProgramFiles(x86)\Graphviz2.20\bin”
> library("Rgraphviz")
Error : .onLoad failed in loadNamespace() for 'Rgraphviz', details:
call: value[[3L]](cond)
error: unable to load shared object 'C:/Users/Abraham/R/win-library/2.14/Rgraphviz/libs/x64/Rgraphviz.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
Check that (1) graphviz is installed on your system; (2) the installed version of graphviz matches '2.20.3'; this is
the version used to build this Rgraphviz package; (3) graphviz is accessible to R, e.g., the path to the graphviz
'bin' directory is in the system 'PATH' variable. See additional instructions in the 'README' file of the Rgraphviz
'source' distribution, available at
http://bioconductor.org/packages/release/bioc/html/Rgraphviz.html
Ask further questions on the Bioconductor mailing list
http://bioconductor.org/docs/mailList.html
Error: package/namespace load failed for ‘Rgraphviz’
有人知道会出什么问题吗?我在不同版本的R上试过,同样的问题发生了
及供参考:
> sessionInfo()
R version 2.14.0 (2011-10-31)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] grid stats graphics grDevices utils datasets methods base
other attached packages:
[1] graph_1.32.0 BiocInstaller_1.2.1
loaded via a namespace (and not attached):
[1] tools_2.14.0
就我个人而言,我建议(a)更新到R-2.15.1,然后(b)使用Bioconductor的“devel”版本(devel”版本将在10月2日成为发布版本,因此对于患者,建议等到那时)。Do(b)在新的R安装中,使用
涵盖您希望同时使用Bioconductor发行版和开发版的情况。然后安装Rgraphviz
as
biocLite("Rgraphviz")
故事结束,无需安装graphviz等
biocLite("Rgraphviz")