tempfile: A cheater redefinition of tempfile.

View source: R/helpers_misc.R

tempfileR Documentation

A cheater redefinition of tempfile.

Description

I found this at: https://stackoverflow.com/questions/5262332/parallel-processing-and-temporary-files and was intrigued. I did not think to overwrite the tempfile definition. Something in me says this is a terrible idea. The same page suggests creating all the tempfile names _before_ beginning the parallel operations. I think this might be the way to go; however I do not know how that will affect the tempfile names produced by knitr when it is making its images.

Usage

tempfile(pattern = "file", tmpdir = tempdir(), fileext = "")

Arguments

pattern

starting string of each tempfile.

tmpdir

Location to put the file.

fileext

suffix.


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.