default_jar: Get the default cookie storage directory (jar)

View source: R/set.r

default_jarR Documentation

Get the default cookie storage directory (jar)

Description

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.

Usage

default_jar()

Value

A string representing the path to the default cookie storage directory (jar).

Examples

# 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"))

cookiemonster documentation built on May 29, 2024, 8:12 a.m.