default_jar | R Documentation |
This function returns the default directory (jar) for storing cookies. Users
can set their own cookie storage location by using options(cookie_dir =
"your/directory/here")
. If no custom directory is specified, the default
directory used by the rappdirs
package will be returned.
default_jar()
A string representing the path to the default cookie storage directory (jar).
# Get the default jar
default_jar()
# Set a custom cookie storage directory
options(cookie_dir = "/path/to/your/cookie/directory")
# Get the custom cookie directory
default_jar()
# revert to the package default
options(cookie_dir = rappdirs::user_cache_dir("r_cookies"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.