rb_check_cache_folder | R Documentation |
Checks if cache folder exists, if not returns an informative message
rb_check_cache_folder()
If the cache folder exists, returns TRUE. Otherwise throws an error.
# If cache folder does not exist, it throws an error
tryCatch(rb_check_cache_folder(),
error = function(e) {
return(e)
}
)
# Create cache folder
rb_set_cache_folder(path = fs::path(
tempdir(),
"rb_cache_folder"
))
rb_create_cache_folder(ask = FALSE)
rb_check_cache_folder()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.