2012-09-24 65 views
4

我已閱讀RGraphviz頁面上的README文件,並在R幫助列表和此處查看了許多問題,但我仍未找到導致我無法安裝Rgraphviz軟件包的原因在R 2.14.0上。問題在Windows中安裝RGraphviz

  1. 我已經下載並安裝的Graphviz 2.20.3(雖然一開始菜單說,這是2.21)

  2. 我已經添加了Graphviz的bin文件夾到我的用戶路徑。

    strsplit(Sys.getenv( 「路徑」), 「;」) [[1]] [1] 「C:\ Program Files文件\ r \ R-2.14.0 \ BIN \ 64」
    [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] Intel \ DMIX「
    [11]」C:\ Program Files(x86)\ NTRU Cryptosystems \ NTRU TCG Software Stack \ bin \「
    [12]」C:\ Program Files \ NTRU Cryptosystems \ NTRU TCG Software Stack \ 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:\ Program Files(x86)\ Microsoft SQL Serve r \ 100 \ Tools \ Binn \「
    [17]」c:\ Program Files \ Microsoft SQL Server \ 100 \「\」\ Program Files \ Microsoft SQL Server \ 100 \ Tools \ Binn \「
    [18] DTS \ BINN \」
    [19] 「C:\ Program Files文件(x86)的\ Graphviz2.20 \ BIN」

  3. 使用Bioconductor的安裝包Rgraphviz。

    源( 「http://bioconductor.org/biocLite.R」) biocLite( 「Rgraphviz」) BioC_mirror: 'http://www.bioconductor.org' 基於R版本2.14,BiocInstaller版本1.2.1。 安裝軟件包'Rgraphviz' 將軟件包安裝到'C:/Users/Abraham/R/win-library/2.14' (因爲'lib'未指定) 嘗試URL'http:// www .bioconductor.org /包/ 2.9/BIOC /斌/窗/的contrib/2.14/Rgraphviz_1.32.0。拉鍊」 內容類型 '應用程序/壓縮' 長度933734個字節(911 KB) 打開URL 下載911 KB

    包 'Rgraphviz' 成功解壓縮和MD5和檢查

    下載的包在 C:\ Users \ Abraham \ AppData \ Local \ Temp \ RtmpYNFDxs \ downloaded_pa​​ckages 警告消息: 'boot'無法更新,安裝目錄'C:/ Program Files/R/R-2.14.0/library'不可寫入 'class'無法更新,安裝目錄'C:/ Program Files/R/R-2.14.0/library'not writeabl e 'cluster'無法更新,安裝目錄'C:/ Program Files/R/R-2.14.0/library'不可寫入 'foreign'無法更新,安裝目錄'C:/ Program Files/R/R -2.14.0/library'不可寫 'KernSmooth'無法更新,安裝目錄'C:/ Program Files/R/R-2.14.0/library'不可寫 '格'無法更新,安裝目錄'C :/ Program Files/R/R-2.14.0/library'不可寫入 'MASS'無法更新,安裝目錄'C:/ Program Files/R/R-2.14.0/library'不可寫 'Matrix'無法更新,安裝目錄'C:/ Program Files/R/R-2.14.0/library'不可寫入 'mgcv'無法更新,安裝目錄'C:/ Program Files/R/R-2.14.0 /庫'不可寫入 'nlme'無法更新,安裝目錄ectory 'C:/ Program Files文件/ R/R-2.14.0 /庫' 不可寫 「N [...截短]

現在它指出Rgraphviz被成功解壓縮。但是,當我嘗試使用庫導入包時,出現錯誤消息。

> 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 

回答

4

就個人而言,我建議(一)更新到R-2.15.1,然後(b)使用Bioconductor的的 'devel的' 版本( 'devel的' 版本成爲10月2日發佈的版本,因此對於患者建議等待至此)。 DO(B)在一個新的R安裝過程中

source("http://bioconductor.org/biocLite.R") 
BiocInstaller::useDevel() 

More detailed instructions蓋,你希望使用Bioconductor的兩個版本和開發版本的情況。然後安裝Rgraphviz作爲

biocLite("Rgraphviz") 

末的故事,沒有graphviz的安裝等