Help with error install csaw
2
0
Entering edit mode
Chris ▴ 20
@3fdb6f97
Last seen 4 months ago
United States

Hi all,

Would you have a suggestion how to fix the error below? Thank you so much!

if (!require("BiocManager", quietly = TRUE))
  install.packages("BiocManager")

BiocManager::install("csaw")
library(csaw)

Error in library(csaw) : there is no package called ‘csaw’

ChIPSeq ATACSeq • 1.4k views
ADD COMMENT
1
Entering edit mode

You don't show the results from running BiocManager::install("csaw")

ADD REPLY
0
Entering edit mode

Sorry for that. I assumed it was not helpful in this case.

BiocManager::install("csaw")

'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package
= "BiocManager")' for details.
Replacement repositories:
    CRAN: https://cran.rstudio.com/
Bioconductor version 3.16 (BiocManager 1.30.20), R 4.2.2 (2022-10-31)
Installing package(s) 'csaw'
Warning in install.packages(...) :
  'lib = "/scg/apps/software/r/4.2.2/lib"' is not writable
Would you like to use a personal library instead? (yes/No/cancel) Yes
trying URL 'https://bioconductor.org/packages/3.16/bioc/src/contrib/csaw_1.32.0.tar.gz'
Content type 'application/x-gzip' length 398305 bytes (388 KB)
==================================================
downloaded 388 KB

Error: ERROR: no permission to install to directory ‘/scg/apps/software/r/4.2.2/lib’

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

Seem I don't have permission to install to directory ‘/scg/apps/software/r/4.2.2/lib’, so I should contact server admin or I can install somewhere else?

ADD REPLY
2
Entering edit mode
@james-w-macdonald-5106
Last seen 7 days ago
United States

I am not sure why you didn't think that was helpful? I mean it says

Error: ERROR: no permission to install to directory ‘/scg/apps/software/r/4.2.2/lib’

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

Which is pretty explanatory, no?

ADD COMMENT
0
Entering edit mode

Thank you. So seem the packages downloaded at ‘/tmp/RtmpCYqA2u/downloaded_packages’. But module avail, I don't see csaw. Would you tell me how to load this package?

ADD REPLY
1
Entering edit mode

Yes, it was downloaded, but you cannot install in a library directory for which you have no permissions. You could do

.libPaths(<path to somewhere that you do have permissions>)
install("csaw")

Normally BiocManager::install will tell you that you don't have permissions and ask if you want to install in a different directory that you do have permissions for. Did that not happen?

ADD REPLY
0
Entering edit mode

Thank you for your help.

.libPaths(<path to somewhere that you do have permissions>)
install("csaw")

There is no error but Rstudio still running and print a lot of output on the console which I think there is something wrong. It took a lot longer than usual to install a package.

Update: after about 30 minutes, it finished. Do you think it is normal?

ADD REPLY

Login before adding your answer.

Traffic: 557 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6