read_from_gd {settingsSync} | R Documentation |
Read from Google Drive a JSON file inside rstudio folder
Description
This is a helper function for [pull()] and [sync()] that: * reads a json file from Google Drive inside the rstudio folder * converts it to a data frame (to resolve conflicts in the future)
Usage
read_from_gd(what, progBar = NULL)
Arguments
what |
One of c("rstudio_bindings", "editor_bindings", "addins"), the file to read |
progBar |
function, designed to work with [progress_bar()]. Runs after the file is read. |
Value
A data frame with the contents of the file, converted from json
See Also
[read_from_local()] [sync()] [jsonlite::fromJSON()] [googledrive::drive_read_string()]
Examples
mimic_on()
read_from_gd("rstudio_bindings")
read_from_gd("editor_bindings")
read_from_gd("addins")
mimic_off()
[Package settingsSync version 3.0.2 Index]