bvieth / powsimR

Power analysis is essential to optimize the design of RNA-seq experiments and to assess and compare the power to detect differentially expressed genes. PowsimR is a flexible tool to simulate and evaluate differential expression from bulk and especially single-cell RNA-seq data making it suitable for a priori and posterior power analyses.
https://bvieth.github.io/powsimR/
Artistic License 2.0
104 stars 23 forks source link

powsimR installation forces BASiCS download #3

Closed haniap closed 7 years ago

haniap commented 7 years ago

Hello again,

I am just trying to install powsimR onto my work computer and although I already have BASiCS installed, the installation of powsimR overrides it and re-installs it again. Is there a way around this as it is creating a conflict with the various requirements of R versions? I attach the error below. With many thanks, Hania

devtools::install_github("bvieth/powsimR", build_vignettes = FALSE) Downloading GitHub repo bvieth/powsimR@master from URL https://api.github.com/repos/bvieth/powsimR/zipball/master Installing powsimR Skipping install for github remote, the SHA1 (d5d27442) has not changed since last install. Use force = TRUE to force installation Skipping install for github remote, the SHA1 (1fe6f32d) has not changed since last install. Use force = TRUE to force installation Downloading GitHub repo catavallejos/BASiCS@master from URL https://api.github.com/repos/catavallejos/BASiCS/zipball/master Installing BASiCS Skipping 1 unavailable package: SingleCellExperiment Skipping 1 package ahead of CRAN: AnnotationDbi Installing 1 package: XML trying URL 'https://cran.rstudio.com/src/contrib/XML_3.98-1.9.tar.gz' Content type 'application/x-gzip' length 1599437 bytes (1.5 MB)

downloaded 1.5 MB

The downloaded source packages are in ‘/tmp/RtmpakBR97/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done '/ifs/devel/haniap/py35-v1/conda/envs/py35-v1/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore \ --quiet CMD INSTALL '/tmp/RtmpakBR97/devtools12d227c3df23/catavallejos-BASiCS-94c4666' \ --library='/ifs/devel/haniap/py35-v1/conda/envs/py35-v1/lib/R/library' --install-tests

ERROR: this R is version 3.3.1, package 'BASiCS' requires R >= 3.4 Error: Command failed (1) In addition: Warning message: In utils::install.packages(pkgs, repos = repos, type = type, dependencies = dependencies, : installation of package ‘XML’ had non-zero exit status

bvieth commented 7 years ago

Dear Hania,

thank you for your interest in powsimR.

Apparently the default setting in devtools' install_github is to install all packages listed in the dependencies. To block this unnecessary reinstallation, invoke powsimR's installation with the following command (see also the updated README):

devtools::install_github('bvieth/powsimR', build_vignettes = TRUE, dependencies=FALSE)

I hope this helps!

Best, Beate

haniap commented 7 years ago

Perfect - thanks Beate!