Follow-up: RStudio: Place for Storing Options (as plain text)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Follow-up: RStudio: Place for Storing Options (as plain text)

G.Maubach
Hi All,

some time ago I asded a question about the places where RStudio stores it
configuration information. I came across this posting

https://support.rstudio.com/hc/en-us/articles/206382178?version=1.0.136&mode=desktop

explaining RStudio keybindings (predefined and customized). At the end of
the article is the information that RStudio stores keybindings in

~/.R/rstudio/keybindings/rstudio_commands.json
~/.R/rstudio/keybindings/editor_commands.json

I want to share this with you.

Kind regards

Georg


----- Weitergeleitet von Georg Maubach/WWBO/WW/HAW am 19.04.2017 10:10
-----

Von:    Georg Maubach/WWBO/WW/HAW
An:     R-help mailing list <[hidden email]>,
Kopie:  Martin Maechler <[hidden email]>, Jeff Newmiller
<[hidden email]>
Datum:  08.03.2017 08:59
Betreff:        Follow-up: [R] RStudio: Place for Storing Options (as
plain text)



Hi All,

I got a late reply from RStudio Support concerning the question where
RStudio store options and configurations:

-- cut --

The post RStudio Config Files has a new comment.
. . .
Unfortunately, it's unlikely that we'll be able to provide a programmatic
R interface in the near future -- the way we lay out and store RStudio's
client state does not make it as amenable to public consumption as we
might hope.
That said, you can generally copy everything within that folder to a new
machine (at the same relative path from the user home directory), and
expect preferences to be respected + restored as you might expect.
. . .
--cut --

The result of the discussion is:

We can copy the complete RStudio directory for storing options and
configurations under

%localappdata%\RStudio-Desktop or
C:\Users\<username>\AppData\Local\RStudio-Desktop

and copy it completely to a new installation of RStudio.

A programmatic approach to edit RStudio options and configurations is not
possible due to design decisions.

The purpose of the initial question was to find a way to save RStudio
options and configurations, e g. on git/github or similar. This is
possible by initialising the above given directory with git or similar.

An open question is what happens if a new RStudio release makes changes to
the options and configurations. If the stored directory can be completely
used would need additional clearification, i.e. for each new version.

Kind regards

Georg




Von:    Martin Maechler <[hidden email]>
An:
Kopie:   <[hidden email]>,
Datum:  23.02.2017 08:37
Betreff:        Re: [R] RStudio: Place for Storing Options



>>>>> Jeff Newmiller <[hidden email]>
>>>>>     on Sat, 11 Feb 2017 08:09:36 -0800 writes:

    > For the record, then, Google listened to my incantation of
    > "rstudio configuration file" and the second result was:

    >
https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State


    > RStudio Desktop is also open source, so you can download
    > the source code and look at the operating-system-specific
    > bits (for "where") if the above link goes out of date or
    > disappears.

Thanks a lot, Jeff!

And for the archives:  On reasonable OS's,  the hidden
directory/folder containing all the info is
                                  ~/.rstudio-desktop/
and if "things are broken" the recommendation is to rename that
   mv ~/.rstudio-desktop  ~/backup-rstudio-desktop
and (zip and) send along with your e-mail to the experts for diagnosis.


    > On Thu, 9 Feb 2017, Martin Maechler wrote:

    >>
    >>>>>>> Ulrik Stervbo <[hidden email]> on Thu, 9
    >>>>>>> Feb 2017 14:37:57 +0000 writes:
    >>
    >> > Hi Georg, > maybe someone here knows, but I think you
    >> are more likely to get answers to > Rstudio related
    >> questions with RStudio support: >
    >> https://support.rstudio.com/hc/en-us
    >>
    >> > Best, > Ulrik
    >>
    >> Indeed, thank you, Ulrik.
    >>
    >> In this special case, however, I'm quite sure many
    >> readers of R-help would be interested in the answer; so
    >> once you receive an answer, please post it (or a link to
    >> a public URL with it) here on R-help, thank you in
    >> advance.
    >>
    >> We would like to be able to *save*, or sometimes *set* /
    >> *reset* such options "in a scripted manner", e.g. for
    >> controlled exam sessions.
    >>
    >> Martin Maechler, ETH Zurich
    >>
    >> > On Thu, 9 Feb 2017 at 12:35 <[hidden email]>
    >> wrote:
    >>
    >> >> Hi All, >> I would like to make a backup of my RStudio
    >> IDE options I configure using >> "Tools/Global Options"
    >> from the menu bar. Searching the >> web did not reveal
    >> anything.
    >>
    >> >> Can you tell me where RStudio IDE does store its
    >> configuration?
    >>
    >> >> Kind regards >> Georg
    >>
    >> ______________________________________________
    >> [hidden email] mailing list -- To UNSUBSCRIBE and
    >> more, see https://stat.ethz.ch/mailman/listinfo/r-help
    >> PLEASE do read the posting guide
    >> http://www.R-project.org/posting-guide.html and provide
    >> commented, minimal, self-contained, reproducible code.
    >>

    >
---------------------------------------------------------------------------
    > Jeff Newmiller The .....  .....  Go Live...
    > DCN:<[hidden email]> Basics: ##.#.  ##.#.  Live
    > Go...  Live: OO#.. Dead: OO#..  Playing Research Engineer
    > (Solar/Batteries O.O#.  #.O#.  with /Software/Embedded
    > Controllers) .OO#.  .OO#.  rocks...1k
    >

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.