Learn R Programming

settingsSync (version 3.0.2)

read_from_gd: 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)

Value

A data frame with the contents of the file, converted from json

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.

See Also

[read_from_local()] [sync()] [jsonlite::fromJSON()] [googledrive::drive_read_string()]

Examples

Run this code
mimic_on()
  read_from_gd("rstudio_bindings")
  read_from_gd("editor_bindings")
  read_from_gd("addins")
mimic_off()

Run the code above in your browser using DataLab