Coder Social home page Coder Social logo

Could not install R packages about armor HOT 6 CLOSED

uqtho10 avatar uqtho10 commented on June 16, 2024
Could not install R packages

from armor.

Comments (6)

uqtho10 avatar uqtho10 commented on June 16, 2024

Here's my Rout.

Rout.txt

Error in rule pkginstall:
jobid: 1
input: scripts/install_pkgs.R
output: example_data/output/Rout/pkginstall_state.txt
log: example_data/output/Rout/install_pkgs.Rout (check log file(s) for error details)
conda-env: /Users/uqtho10/ARMOR/.snakemake/conda/a4fc58524fec5e8c53450cde04b86ca0_
shell:
R CMD BATCH --no-restore --no-save "--args outtxt='example_data/output/Rout/pkginstall_state.txt' ncores='1' annotation='Ensembl' organism='Homo_sapiens'" scripts/install_pkgs.R example_data/output/Rout/install_pkgs.Rout
(one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

from armor.

csoneson avatar csoneson commented on June 16, 2024

Hi @uqtho10 - thanks for the report.

There are indeed several error messages in the attached Rout file above - e.g., there seem to be a few timeouts when downloading big packages, and the units package fails to install as the udunits system library is not found.

It looks like you're on a mac, is that correct? May I ask which of the setup approaches for R you are using (1a, 1b, 2)? For macOS, we found approach 1b to be the most reliable.

from armor.

uqtho10 avatar uqtho10 commented on June 16, 2024

Hi,

Thank you for your response. I'm using MacOS Montery. I'm doing 1a to install.

I would like to try 1b but I'm a little confused how to change the path in Renviron.
What I understand is that:

  • I need to change Rbin path in config.yaml to my current R path. I have 2 R paths:
    • /Users/uqtho10/anaconda3/envs/R/bin/R
    • /Users/uqtho10/anaconda3/pkgs/r-base-3.3.1-0/bin/R
      Which one should I use?
      The R lib path in my Mac is :
  • /Users/uqtho10/anaconda3/envs/R/lib

How should I change it in Renviron?

#R_LIBS_USER=${R_LIBS_USER-'/R/x86_64-apple-darwin13.4.0-library/4.1'}
R_LIBS_USER=${R_LIBS_USER-'
/Library/R/x86_64/4.1/library'}

Sorry as I'm not really familiar with these.

Kind regards,
Thao

from armor.

csoneson avatar csoneson commented on June 16, 2024

If R is in your path, you can simply set Rbin: R in the yaml file - otherwise, give the full path to the binary you want to use. The second R binary in your list is too old (at least R 4.1.0 is required). If you run into problems with the first binary in your list (as it is installed with conda), I suggest downloading and installing R directly from https://www.r-project.org/.

For the .Renviron file (note that the file name has to start with a dot), just add a line
R_LIBS_USER="/Users/uqtho10/anaconda3/envs/R/lib"
(or any other path where you want to install the packages).

from armor.

csoneson avatar csoneson commented on June 16, 2024

👋🏻 @uqtho10 - just wanted to check in to see if the suggestions above solved your problem.

from armor.

csoneson avatar csoneson commented on June 16, 2024

I'm going to close this issue - feel free to reopen if the problem persists.

from armor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.