Git Product home page Git Product logo

Comments (3)

ms609 avatar ms609 commented on May 28, 2024 1

Thanks for the question. I suspect the answer will be to modify the cache settings of the underlying R.cache package. I'll look into whether there's a straightforward way to do so!

from treetools.

stitam avatar stitam commented on May 28, 2024

I found an approach that works. More background on the issue: when I run my analysis with Singularity I have to use --no-home option to prevent Singularity from looking for R packages in my host system (would defeat the purpose of a container) but then R.cache cannot create and populate the ~/.cache/R/R.cache directory. A potential solution is to tell Singularity not to use my home in general BUT bind my working directory as my home using the --no-home --bind <workdir>:$HOME option. This way if any tools want to create anything in my home they will create it in the working directory instead.

Alternatively, R.cache::setCacheRootPath() could be used to set a cache path for R.cache but I couldn't get it to work properly; it seems when I load R.cache it looks for the non-existing path and then fails with an error before I get a change to set another path.

Since this issue only comes up when using containers and can be solved from the container side, I think it can be closed.

from treetools.

ms609 avatar ms609 commented on May 28, 2024

Thanks for following up on this, and glad to hear that you were able to find a solution.

from treetools.

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.