Git Product home page Git Product logo

Comments (4)

jarbet avatar jarbet commented on June 30, 2024 1

If you do it this way, all R code you run that uses tempdir() will benefit (not just data.table::fread() and in turn bsseq::read.bismark()). I am unlikely to add a tmpdir argument to bsseq::read.bismar() unless this proposed solution doesn't work (I don't have time to test myself just now, but I seem to recall making use of it in the past).

Changing the TMPDIR environment variable solved this issue. Thanks!

from bsseq.

PeteHaitch avatar PeteHaitch commented on June 30, 2024

I think the location of tempdir() can be controlled by environment variables.
From ?tempdir:

The environment variables TMPDIR, TMP and TEMP are checked in turn and the first found which points to a writable directory is used: if none succeeds ‘/tmp’ is used. The path should not contain spaces. Note that setting any of these environment variables in the R session has no effect on tempdir(): the per-session temporary directory is created before the interpreter is started. [emphasis mine]

This means that you need to set this environment variable before starting R.
From memory, this is done using a .Renviron file, which can be at the user or project-level (https://support.posit.co/hc/en-us/articles/360047157094-Managing-R-with-Rprofile-Renviron-Rprofile-site-Renviron-site-rsession-conf-and-repos-conf).

from bsseq.

PeteHaitch avatar PeteHaitch commented on June 30, 2024

If you do it this way, all R code you run that uses tempdir() will benefit (not just data.table::fread() and in turn bsseq::read.bismark()).
I am unlikely to add a tmpdir argument to bsseq::read.bismar() unless this proposed solution doesn't work (I don't have time to test myself just now, but I seem to recall making use of it in the past).

from bsseq.

PeteHaitch avatar PeteHaitch commented on June 30, 2024

Great, happy to help.

from bsseq.

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.