snakemake r script
1
0
Entering edit mode
5 weeks ago

hi all

i have been trying to execute r script of variant call analysis in a snakemake

rule VCA analysis:

shell:
    "Rscript vca.R"

but when i run it, but it gives the error

Installing package into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) Warning in install.packages("BiocManager") : 'lib = "/usr/local/lib/R/site-library"' is not writable Error in install.packages("BiocManager") : unable to install packages Execution halted

why is it showing this kind of error ??

pipeline snakemake • 388 views
ADD COMMENT
2
Entering edit mode

Consider to install required software first, either locally, conda or via Docker/Singularity. Installing software as part of a pipeline is suboptimal, as it can throw errors that need to be addressed manually.

ADD REPLY
0
Entering edit mode

thanks i will modify script and will install the needed package

ADD REPLY
1
Entering edit mode
5 weeks ago
Mensur Dlakic ★ 20k

'lib = "/usr/local/lib/R/site-library"' is not writable

It would appear that you don't have administrator privileges, because that's what is required to install anything in /usr/local/lib directory. Maybe it will work if you install ahead of time the needed packages from that script you are trying to run (or ask someone to do it for you), and then comment out the installation lines.

ADD COMMENT
0
Entering edit mode

thank you so much

ADD REPLY

Login before adding your answer.

Traffic: 1108 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