disk.frame icon indicating copy to clipboard operation
disk.frame copied to clipboard

output dir in inner_join does not listen...

Open KnutJaegersberg opened this issue 4 years ago • 2 comments

I tried to set the output dir in inner_join, to avoid that it makes a temp dir on my small primary HD on Linux and uses my secondary HD mount. But nonetheless, a step on line 32 in the inner_join.R, it makes a tempdir nonetheless. I used unixtools::set.tempdir("/run/media/knut/HD/tmp/') as a quick fix, one can I guess also change temp variable in .Rprofile file. But it's not working as expected, so I thought I open an issue.

KnutJaegersberg avatar Dec 01 '22 19:12 KnutJaegersberg

However, as I manually overwrote those two lines, as a first attempt to solve it,

  x = rechunk(x, shardby=by, nchunks = max(ncy,ncx), outdir = tempfile(fileext = ".df"), overwrite = FALSE)
  y = rechunk(y, shardby=by, nchunks = max(ncy,ncx), outdir = tempfile(fileext = ".df"), overwrite = FALSE)

with my own tempdir, it still wrote to the primary hd tempdir, regardless. Thus the reason could be elsewhere, too.

KnutJaegersberg avatar Dec 01 '22 19:12 KnutJaegersberg

I see. What does tempdir() give you? cos tempfile calls tempdir to obtain the temporary directory. The temp directory is set per R session, so probably need a way to set it for all R Sesions.. I don't recall which setting is used. I wonder if setting a TMPDIR environment variable would work.

xiaodaigh avatar Dec 03 '22 12:12 xiaodaigh