inst/examples/ensureGlobalDirectory.r

\dontrun{

## Save current option state //
opts_old <- getOption(".rapp")

ensureGlobalDirectory()
getRappOption(".rte/global_dir")
file.exists(getRappOption(".rte/global_dir"))

ensureGlobalDirectory(path = file.path(tempdir(), "rapp"))
getRappOption(".rte/global_dir")
file.exists(getRappOption(".rte/global_dir"))

## Clean up //
options(".rapp" = opts_old)

}
rappster/rapp documentation built on May 26, 2019, 11:56 p.m.