store_googledrive: Use Google Drive as storage mode

Description Usage Arguments Value Note Examples

View source: R/storage.R

Description

All logs will be written in the same file.

Usage

1

Arguments

path

Path to folder on Drive where to send logs.

Value

A list that can be used in track_usage().

Note

See the gargle package to manage authentication, and especially this vignette from gargle package to manage the process.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# In your global, manage Google Drive access
drive_auth(path = "/path/to/your/service-account-token.json")
# see https://gargle.r-lib.org/articles/articles/managing-tokens-securely.html
# to manage your token securely

# Then in server, use:
track_usage(storage_mode = store_googledrive(path = "my-logs/"))

# you may have to share my-logs/ folder with your service account


## End(Not run)

shinylogs documentation built on Nov. 27, 2021, 1:07 a.m.