Btibert3
Btibert3

Reputation: 40176

Download, Revise, Upload Github Gists with R

I often find myself writing my R code in Rstudio and manually copying/pasting the code to a gist at gist.github.com.

I think Rstudio is great and they recently incorporated version control capabilities. I haven't quite graduated to this level just yet, but I am hoping that I could link my github account and manage my gists in the same way. This would remove the manual actions that I take to save and retrieve my code snippets.

The key is that I want to be able to access my code across multiple locations and need to keep some of my code private.

Is this possible? Any help is greatly appreciated.

Upvotes: 6

Views: 378

Answers (2)

jmuhlenkamp
jmuhlenkamp

Reputation: 2160

You may find the gistr package useful. You can read an introduction and see examples here. Also, even shorter than the intro and examples here is a 2015 stack overflow answer from the gistr package creator.

Upvotes: 0

Paul Hiemstra
Paul Hiemstra

Reputation: 60984

In regard to the private repos I think github only supports private repositories for paying users. If you want free private repositories, you could take a look at bitbucket which supports both Mercurial and Git repositories.

Upvotes: 2

Related Questions