Error installing RGraphviz on Windows

I read README on the RGraphviz page and looked at numerous questions in the R help list here too, but I still cannot find a reason why I cannot install the Rgraphviz package on R 2.14.0.

  • I downloaded and installed Graphviz 2.20.3 (although the initial menus say 2.21 about this)

  • I added the Graphviz bin folder to my custom path.

    strsplit (Sys.getenv ("PATH"), ";") [[1]] [1] "C: \ Program Files \ R \ R-2.14.0 \ bin \ x64"
    [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 \ Shared Files \ Intel \ WirelessCommon \"
    [10] "C: \ Program Files \ 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 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: \ Program Files (x86) \ Graphviz2.20 \ bin"

  • A bioconductor is used to install the Rgraphviz package.

    source ("http://bioconductor.org/biocLite.R") biocLite ("Rgraphviz") BioC_mirror: 'http://www.bioconductor.org' Using R version 2.14, BiocInstaller version 1.2.1. Installing package (s) "Rgraphviz" Installing package (s) in "C: /Users/Abraham/R/win-library/2.14 (because" lib is not specified ") try URL 'http://www.bioconductor.org/ packages / 2.9 / bioc / bin / windows / contrib / 2.14 / Rgraphviz_1.32.0.zip 'Content type "application / zip" length 933734 bytes (911 Kb) open URL downloaded 911 Kb

    package 'Rgraphviz successfully unpacked and verified MD5 amounts

    Downloaded packages are located in C: \ Users \ Abraham \ AppData \ Local \ Temp \ RtmpYNFDxs \ downloaded_packages Warning message: "boot" cannot be updated, the directory "C: / Program Files / R / R-2.14.0 / library" is installed not accessible for writing "class" cannot be updated, the directory "C: / Program Files / R / R-2.14.0 / library" is installed not accessible for writing "cluster" cannot be updated, the directory "C: / Program is installed Files / R / R-2.14.0 / library "cannot be written" foreign "cannot be updated, the directory" C: / Program Files / R / R-2.14.0 / library "is not available for writing" KernSmooth " cannot be updated, the directory "C: / Program Files / R / R-2.14.0 / library" is installed cannot To write β€œlattice” cannot be updated, the directory β€œC: / Program Files / R / R-2.14.0 / library” is set not recorded β€œMASS” cannot be updated, the directory β€œC: / Program Files / R / is set R-2.14.0 / library "not writable" Matrix "cannot be updated, the directory" C: / Program Files / R / R-2.14.0 / library "cannot be set" mgcv "cannot be updated , the directory "C: / Program Files / R / R-2.14.0 / library" is installed is not accessible for writing "nlme" cannot be updated, the directory "C: / Program Files / R / R-2.14.0 / library is installed "not writable 'n [... truncated]

Now he claims that Rgraphviz has been successfully unpacked. However, when I try to import a package with a library, I get an error.

> 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, eg, 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' 

Does anyone have an idea what might be wrong? I tried this on different versions of R and the same problem occurred.

And FYI:

 > 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
source share
1 answer

Personally, I suggest (a) upgrading to R-2.15.1, and then (b) using the "devel" version of Bioconductor (the "devel" version will be released on October 2, so the patient advises to wait until then). Do (b) in the new R installation with

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

More detailed instructions cover the situation when you want to use both the release version and the development of Bioconductor. Then set Rgraphviz as

 biocLite("Rgraphviz") 

end of story, no schedule to install, etc.

+4
source

Source: https://habr.com/ru/post/1435982/


All Articles