Question: Necessary Software Package Built For Earlier Version Of R, Now What?
1
gravatar for jobinv
6.8 years ago by
jobinv1.1k
Bergen, Norway
jobinv1.1k wrote:

I am trying to download the package shRNAseq (http://rock.icr.ac.uk/software/shrnaseq.jsp) for analysis of this data: Interpreting counts in a tabular file

However, I get the following error message (I have R version 3.0.1):

> library(shRNAseq)
Error: package ‘shRNAseq’ was built before R 3.0.0: please re-install it

Perhaps it would be more appropriate to contact the developer about this, but I suspect that the issue at hand is more general than just for this particular case: what is the best follow-up step if a package is designed for an earlier version of R, and you need the newer version for all your other stuff? Would you in fact install an older version of R for the purpose of running this package, and then switch back and forth between the versions? Seems quite cumbersome, but I'm not quite seeing any alternative way of solving this issue.

R • 6.3k views
ADD COMMENTlink modified 6.8 years ago by Matt Shirley9.4k • written 6.8 years ago by jobinv1.1k
2
gravatar for Matt Shirley
6.8 years ago by
Matt Shirley9.4k
Cambridge, MA
Matt Shirley9.4k wrote:
$ R
> install.packages('devtools')
> library(devtools)
> install_url('http://rock.icr.ac.uk/software/shrnaseq/shRNAseq_0.3.tar.gz')

You just need to re-install the source package so that any binary components are built under the new version of R. The above is one way to accomplish this.

ADD COMMENTlink written 6.8 years ago by Matt Shirley9.4k
1

Btw, does devtools also contain make and the compilers to build c/fortran code in windows?

ADD REPLYlink written 6.8 years ago by Michael Dondrup47k
1

No. Devtools is simply a collection of R functions that ease development in R. As such, it is primarily designed for R developers, so build tools are assumed to be present.

ADD REPLYlink written 6.8 years ago by Sean Davis26k

Thanks for the tip, but now it seems I'm getting another error message. The same is true when I try with Michael's method, I get the same error message about NAMESPACE then as well. Any ideas?

> library(devtools)
> install_url('http://rock.icr.ac.uk/software/shrnaseq/shRNAseq_0.3.tar.gz')
Downloading shRNAseq_0.3.tar.gz from http://rock.icr.ac.uk/software/shrnaseq/shRNAseq_0.3.tar.gz
Installing package from /tmp/RtmpeF1G84/shRNAseq_0.3.tar.gz
Installing shRNAseq
'/usr/lib/R/bin/R' --vanilla CMD INSTALL '/tmp/RtmpeF1G84/shRNAseq'  \
  --library='/usr/local/lib/R/site-library' --with-keep.source  \
  --install-tests

* installing *source* package 'shRNAseq' ...
ERROR: a 'NAMESPACE' file is required
* removing '/usr/local/lib/R/site-library/shRNAseq'
Error: Command failed (1)
>
ADD REPLYlink modified 6.8 years ago • written 6.8 years ago by jobinv1.1k
2

There is a requirement in R 3.0.0 onwards to include a NAMESPACE file, which obviously won't be included in the version built for older versions of R. There is a post on Stack Overflow explaining how to make one of these: http://stackoverflow.com/questions/17196225/error-a-namespace-file-is-required

ADD REPLYlink written 6.8 years ago by BruceB330
1

I think now it's the time to get the original author of the software involved, even though we could do it ourselves, this is not a sustainable.

ADD REPLYlink written 6.8 years ago by Michael Dondrup47k

Yes. I think this is supposed to be one of the benefits of managed repositories such as Bioconductor.

ADD REPLYlink written 6.8 years ago by Matt Shirley9.4k
1
gravatar for Michael Dondrup
6.8 years ago by
Bergen, Norway
Michael Dondrup47k wrote:

I guess you are on Windows.

You should re-install the package and do as R requests. You can install the source packages (labelled "Mac/Linux"), they do only contain R code and therefore can be installed from source on any OS without further tools. Download the package tar.gz file and run R CMD INSTALL package.tar.gz. See: http://cran.r-project.org/doc/manuals/r-release/R-admin.html#Installing-packages

ADD COMMENTlink modified 6.8 years ago • written 6.8 years ago by Michael Dondrup47k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1847 users visited in the last hour