useResultsDir | R Documentation |
Make a directory for results.
useResultsDir(base, dir, rerun = FALSE)
base |
The base directory to create a results directory in. Will be
created (recursively) if needed, unless |
dir |
The results directory under |
rerun |
Set |
The path to the created (or existing) output directory,
<base>/<outDir>
.
baseDir <- tempfile()
outDirName <- "run-1"
dir.exists( file.path( baseDir, outDirName )) == FALSE
myOutDir <- useResultsDir( baseDir, outDirName )
dir.exists( file.path( baseDir, outDirName )) == TRUE
useResultsDir( baseDir, outDirName, rerun=TRUE ) == myOutDir
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.