Bioconductor / Rhtslib

HTSlib high-throughput sequencing library as an R package
https://bioconductor.org/packages/Rhtslib
11 stars 12 forks source link

Problem installing Rhtslib on renv #26

Closed clanna closed 3 years ago

clanna commented 3 years ago

Hi, I'm trying to install Rhtslib through Bioconductor inside renv but it's not completing. Here is the output from my installation attempt:

` BiocManager::install("Rhtslib") 'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details

replacement repositories: CRAN: https://cran.rstudio.com

Bioconductor version 3.12 (BiocManager 1.30.16), R 4.0.5 (2021-03-31) Installing package(s) 'Rhtslib' trying URL 'https://bioconductor.org/packages/3.12/bioc/src/contrib/Rhtslib_1.22.0.tar.gz' Content type 'application/x-gzip' length 1472143 bytes (1.4 MB)

downloaded 1.4 MB

The downloaded source packages are in ‘/tmp/RtmpZ8pLxk/downloaded_packages’ Warning message: In .inet_warning(msg) : installation of package ‘Rhtslib’ had non-zero exit status`

I thought it was a permission issue or something related to the htslib installation, but neither running R as sudo or installing htslib solved the problem.

hpages commented 3 years ago

Hi,

Looks like packages get installed under /media/clanna/ on your system. On many Linux distributions (e.g. Ubuntu), /media is where external storage devices get mounted. Are you installing packages on an external device? If so, what kind of file system is on the device? It should be a Posix-compliant file system so symlinks can be created. Note that many external storage devices are pre-formatted with a file system that is not Posix-compliant (e.g. FAT16). Trying to create a symlink on such device will always fail, even as sudo.

H.

clanna commented 3 years ago

It's being installed in an external drive formatted as exFAT. I'm using it with renv on multiple computers using this disk and restoring the library worked before on Windows and macOS. I'll try cloning the project to a local directory and see if it works.

hpages commented 3 years ago

This sounds like a recipe for problems. AFAIK there is no guarantee that the packages installed in the R library folder are relocatable. Maybe most of them will, but maybe some of them won't. So it's like playing lottery.

clanna commented 3 years ago

Yes, I agree. Even though it was creating OS-specific libraries, it wasn't a good idea. Installing it locally did the trick. Thanks!