R: Setup cache path

cache_setup {rerddap} | R Documentation

## Setup cache path

### Description

Setup cache path

### Usage

    cache_setup(path_suffix = NULL)

    cache_info()

### Arguments

`path_suffix` | (character) the path suffix to be use for storing cached files

### Details

Looks first if the user has set a cache path suffix in an env var or R option. If not found, proceeds to use a temp directory if not in interactive mode, but if interactive, asks user to setup a default cache location that will work across sessions (but user can say no, in which case a temp directory will be used, and each package start will require cache setup again)

### Value

the full cache path, a directory (character)

### See Also

Other cache: `cache_delete`, `cache_details`, `cache_list`

### Examples

    ## Not run:
    # default path
    cache_setup()

    # you can define your own path
    cache_setup(path = "foobar")

    # cache info
    cache_info()

    ## End(Not run)

[Package rerddap version 0.4.2 Index]