egeulgen / pathfindR

pathfindR: Enrichment Analysis Utilizing Active Subnetworks
https://egeulgen.github.io/pathfindR/
Other
178 stars 25 forks source link

consider adding biocViews: to DESCRIPTION #14

Closed slowkow closed 5 years ago

slowkow commented 5 years ago

Solution

You might consider following this answer from StackOverflow and modifying your DESCRIPTION file to something like the following:

Depends:
    R (>= 3.3.0)
biocViews:
Imports:
    methods,
    snpStats,
    dplyr

Notice the string biocViews:, which should help R to find the pathview dependency from Bioconductor.


Problem

I tried:

install.packages("pathfindR")

I got:

Installing package into ‘/PHShome/ks38/.local/lib/R/x86_64-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning: dependency ‘pathview’ is not available
trying URL 'https://cran.rstudio.com/src/contrib/pathfindR_1.3.0.tar.gz'
Content type 'application/x-gzip' length 6072721 bytes (5.8 MB)
==================================================
downloaded 5.8 MB

ERROR: dependency ‘pathview’ is not available for package ‘pathfindR’
* removing ‘/PHShome/ks38/.local/lib/R/x86_64-linux-gnu-library/3.4/pathfindR’

The downloaded source packages are in
        ‘/tmp/RtmpRLpeNb/downloaded_packages’
Warning message:
In install.packages("pathfindR") :
  installation of package ‘pathfindR’ had non-zero exit status

I had to install pathview first.

> source("http://bioconductor.org/biocLite.R")
> biocLite("pathview")

Now it works:

> install.packages("pathfindR")
Installing package into ‘/PHShome/ks38/.local/lib/R/x86_64-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/pathfindR_1.3.0.tar.gz'
Content type 'application/x-gzip' length 6072721 bytes (5.8 MB)
==================================================
downloaded 5.8 MB

* installing *source* package ‘pathfindR’ ...
** package ‘pathfindR’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (pathfindR)
egeulgen commented 5 years ago

thanks for the suggestion @slowkow! I modified the DESCRIPTION and this should fix the installation issue