tempfile | R Documentation |
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.
tempfile(pattern = "file", tmpdir = tempdir(), fileext = "")
pattern |
starting string of each tempfile. |
tmpdir |
Location to put the file. |
fileext |
suffix. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.