threadSafeTempFile | R Documentation |
This function is a wrapper around tempfile
, which creates
temporary file names whose path contains the process ID of the calling
process. This avoids clashes between threads created by functions such as
mclapply
(in the “parallel” package), which can easily occur with
the standard tempfile
function.
threadSafeTempFile(pattern = "file")
pattern |
Character vector giving the initial part of each file name. |
A character vector of temporary file names. No files are actually created.
Jon Clayden
Please cite the following reference when using TractoR in your work:
J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v044.i08")}.
tempfile
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.