Package 'settings.sync'

Title: RStudio Settings Sync
Description: RStudio addin that allows settings to be synced to GitHub Gists.
Authors: Troy James Palanca [aut, cre]
Maintainer: Troy James Palanca <[email protected]>
License: AGPL (>= 3)
Version: 0.1.1
Built: 2025-02-02 02:55:30 UTC
Source: https://github.com/tjpalanca/settings.sync

Help Index


Sync Addin

Description

This Gadget syncs rstudio settings to a GitHub gist.

Usage

sync_addin()

sync_addin_ui(request)

sync_addin_server(input, output, session)

sync_gist_id(gist_id = NULL)

sync_gist_id_reset()

sync_config_dir()

sync_new()

sync_existing(gist_id = NULL)

Arguments

request

(rook) request

input, output, session

(shiny) arguments

gist_id

(str) Gist ID to sync with, NULL if none.

Functions

  • sync_addin_ui: Actual Sync Addin

  • sync_addin_server: Server Function

  • sync_gist_id: Gist ID checker If no value is supplied, then retrieves the stored gist ID. If a value is supplied, then writes the Gist ID into a text file defined by the user directory.

  • sync_gist_id_reset: Reset the Gist ID

  • sync_config_dir: RStudio Config Directory

  • sync_new: Sync a new gist This is used by the addin if there is no gist ID specified. It creates a new gist and uploads the files into the gist. It does this in a weird way (one-by-one) because sometimes the gist contents are truncated.

  • sync_existing: Sync and existing Gist This is used when there is an existing configuraiton. It uses the last modified timestamp of each file to determine whether it is more or less updated than the gist file, and then syncs those changes.