Learn R Programming

settingsSync

R package and Rstudio Addin to sync its settings, keymaps and keyboard shortcuts, using Google Drive.

Installation

install.packages("settinsSync")
# or
pak::pak("notPlancha/settingsSync")
# or pak::pak("notPlancha/settingsSync@2.0.0") If you want a specific version

Version 2.0.0 is incompatible with CRAN policies, because it writes the files by default but it has a generally better api because of it. Otherwise it's generally the same IMO.

Usage

You can directly call settingsSync::sync(), or use the Rstudio Addin (they do the same thing); and follow the instructions. The extension pulls the settings from Google Drive (if any), tries to merge them with the local settings (the package has conflict resolution), and then pushes the merged settings to Google Drive.

Contributing

I'm using pixi to ease development, and pre-commit. So after cloning:

# scoop install pixi
pixi install
pixi run hook-install

should do the trick. After that open the project in Rstudio. If you want to install the exact package versions I used, then run pak::lockfile_install().

All of this is optional, it just helps upkeep for me. If you know what you're doing, don't worry about it.

[!NOTE]
I didn't add R to pixi because Windows versions are not updated and they don't work well with rstudio (and rstudio in conda is also not updated as of writing).

Feel free to open an issue or a PR.

Copy Link

Version

Install

install.packages('settingsSync')

Monthly Downloads

158

Version

3.0.2

License

Apache License (== 2)

Issues

Pull Requests

Stars

Forks

Maintainer

André Plancha

Last Published

June 14th, 2024

Functions in settingsSync (3.0.2)

pull

Pull Rstudio Settings
read_from_gd

Read from Google Drive a JSON file inside rstudio folder
push

Push Rstudio Settings
sync

Sync Rstudio Settings
rstudio_path

Get rstudio local path
read_from_local

Read from local a JSON file inside rstudio folder
mimic-on-off

Simulate the functions before truly running them