r-causal icon indicating copy to clipboard operation
r-causal copied to clipboard

Installation issue on Windows 7

Open yuanzhou opened this issue 8 years ago • 0 comments

I tested the installation on my windows 7, got an error message after I ran install_github("bd2kccd/tetradR"). Below is the content from RStudio.


R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> install.packages("rJava")
Installing package into ‘C:/Users/zhy19/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/rJava_0.9-8.zip'
Content type 'application/zip' length 766972 bytes (748 KB)
downloaded 748 KB

package ‘rJava’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\zhy19\AppData\Local\Temp\Rtmpod80WN\downloaded_packages
> source("https://bioconductor.org/biocLite.R") 
Bioconductor version 3.2 (BiocInstaller 1.20.1), ?biocLite for help
> biocLite("graph")
BioC_mirror: https://bioconductor.org
Using Bioconductor 3.2 (BiocInstaller 1.20.1), R 3.2.3 (2015-12-10).
Installing package(s) ‘graph’
trying URL 'https://bioconductor.org/packages/3.2/bioc/bin/windows/contrib/3.2/graph_1.48.0.zip'
Content type 'application/zip' length 2729247 bytes (2.6 MB)
downloaded 2.6 MB

package ‘graph’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\zhy19\AppData\Local\Temp\Rtmpod80WN\downloaded_packages
Old packages: 'boot', 'Matrix', 'mgcv', 'nlme', 'nnet'
Update all/some/none? [a/s/n]: 
a
Warning in install.packages(update[instlib == l, "Package"], l, repos = repos,  :
  'lib = "C:/Program Files/R/R-3.2.3/library"' is not writable
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/boot_1.3-18.zip'
Content type 'application/zip' length 591611 bytes (577 KB)
downloaded 577 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/Matrix_1.2-4.zip'
Content type 'application/zip' length 3629206 bytes (3.5 MB)
downloaded 3.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/mgcv_1.8-12.zip'
Content type 'application/zip' length 2212921 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/nlme_3.1-126.zip'
Content type 'application/zip' length 2137112 bytes (2.0 MB)
downloaded 2.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/nnet_7.3-12.zip'
Content type 'application/zip' length 121144 bytes (118 KB)
downloaded 118 KB

package ‘boot’ successfully unpacked and MD5 sums checked
package ‘Matrix’ successfully unpacked and MD5 sums checked
package ‘mgcv’ successfully unpacked and MD5 sums checked
package ‘nlme’ successfully unpacked and MD5 sums checked
package ‘nnet’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\zhy19\AppData\Local\Temp\Rtmpod80WN\downloaded_packages
> biocLite("RBGL")
BioC_mirror: https://bioconductor.org
Using Bioconductor 3.2 (BiocInstaller 1.20.1), R 3.2.3 (2015-12-10).
Installing package(s) ‘RBGL’
trying URL 'https://bioconductor.org/packages/3.2/bioc/bin/windows/contrib/3.2/RBGL_1.46.0.zip'
Content type 'application/zip' length 3132926 bytes (3.0 MB)
downloaded 3.0 MB

package ‘RBGL’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\zhy19\AppData\Local\Temp\Rtmpod80WN\downloaded_packages
Old packages: 'boot', 'Matrix', 'mgcv', 'nlme', 'nnet'
Update all/some/none? [a/s/n]: 
a
Warning in install.packages(update[instlib == l, "Package"], l, repos = repos,  :
  'lib = "C:/Program Files/R/R-3.2.3/library"' is not writable
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/boot_1.3-18.zip'
Content type 'application/zip' length 591611 bytes (577 KB)
downloaded 577 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/Matrix_1.2-4.zip'
Content type 'application/zip' length 3629206 bytes (3.5 MB)
downloaded 3.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/mgcv_1.8-12.zip'
Content type 'application/zip' length 2212921 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/nlme_3.1-126.zip'
Content type 'application/zip' length 2137112 bytes (2.0 MB)
downloaded 2.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/nnet_7.3-12.zip'
Content type 'application/zip' length 121144 bytes (118 KB)
downloaded 118 KB

package ‘boot’ successfully unpacked and MD5 sums checked
package ‘Matrix’ successfully unpacked and MD5 sums checked
package ‘mgcv’ successfully unpacked and MD5 sums checked
package ‘nlme’ successfully unpacked and MD5 sums checked
package ‘nnet’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\zhy19\AppData\Local\Temp\Rtmpod80WN\downloaded_packages
> biocLite("Rgraphviz")
BioC_mirror: https://bioconductor.org
Using Bioconductor 3.2 (BiocInstaller 1.20.1), R 3.2.3 (2015-12-10).
Installing package(s) ‘Rgraphviz’
trying URL 'https://bioconductor.org/packages/3.2/bioc/bin/windows/contrib/3.2/Rgraphviz_2.14.0.zip'
Content type 'application/zip' length 3670424 bytes (3.5 MB)
downloaded 3.5 MB

package ‘Rgraphviz’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\zhy19\AppData\Local\Temp\Rtmpod80WN\downloaded_packages
Old packages: 'boot', 'Matrix', 'mgcv', 'nlme', 'nnet'
Update all/some/none? [a/s/n]: 
a
Warning in install.packages(update[instlib == l, "Package"], l, repos = repos,  :
  'lib = "C:/Program Files/R/R-3.2.3/library"' is not writable
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/boot_1.3-18.zip'
Content type 'application/zip' length 591611 bytes (577 KB)
downloaded 577 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/Matrix_1.2-4.zip'
Content type 'application/zip' length 3629206 bytes (3.5 MB)
downloaded 3.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/mgcv_1.8-12.zip'
Content type 'application/zip' length 2212921 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/nlme_3.1-126.zip'
Content type 'application/zip' length 2137112 bytes (2.0 MB)
downloaded 2.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/nnet_7.3-12.zip'
Content type 'application/zip' length 121144 bytes (118 KB)
downloaded 118 KB

package ‘boot’ successfully unpacked and MD5 sums checked
package ‘Matrix’ successfully unpacked and MD5 sums checked
package ‘mgcv’ successfully unpacked and MD5 sums checked
package ‘nlme’ successfully unpacked and MD5 sums checked
package ‘nnet’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\zhy19\AppData\Local\Temp\Rtmpod80WN\downloaded_packages
> install.packages("devtools")
Installing package into ‘C:/Users/zhy19/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/devtools_1.10.0.zip'
Content type 'application/zip' length 392605 bytes (383 KB)
downloaded 383 KB

package ‘devtools’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\zhy19\AppData\Local\Temp\Rtmpod80WN\downloaded_packages
> library(devtools)
Warning message:
package ‘devtools’ was built under R version 3.2.4 
> install_github("bd2kccd/tetradR")
Downloading GitHub repo bd2kccd/tetradR@master
from URL https://api.github.com/repos/bd2kccd/tetradR/zipball/master
Installing tetradR
Skipping 2 unavailable packages: graph, RBGL
"C:/Program Files/R/R-32~1.3/bin/x64/R" --no-site-file --no-environ  \
  --no-save --no-restore CMD INSTALL  \
  "C:/Users/zhy19/AppData/Local/Temp/Rtmpod80WN/devtools69bf8c93e7e/bd2kccd-tetradR-be0580e"  \
  --library="C:/Users/zhy19/Documents/R/win-library/3.2"  \
  --install-tests 

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Error: Command failed (1)

@chirayukong it seems to be a path issue.

I'm also not sure why I got the error message of Skipping 2 unavailable packages: graph, RBGL since I've included those two packages.

yuanzhou avatar Mar 15 '16 13:03 yuanzhou