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