从RStudio推到Github [英] Pushing to Github from RStudio
问题描述
当您使用RStudio时,您的git工作流程看起来如何?
What's your git workflow look like when you're working with RStudio?
我想开始使用github来控制我的脚本。我知道你可以使用命令行/终端来推送一个仓库,但一直无法找到一个git包。任何一个建议?
I want to start using github for source control of my scripts. I know you can use the command line/terminal to push a repository, but have been unable to find a package for git. Any suggestion for one?
或者,我可以使用系统
命令: system( git push)
Alternatively, I could use the system
command: system("git push")
任何人都可以提出更好/更优雅的方法来做到这一点吗?
Can anyone suggest a better/more elegant way to do this?
推荐答案
我似乎记得Rstudio的新开发版本内置了对git的支持。如果你不想使用它,我自己完全可以在单独的控制台中使用命令行来签入代码。您也可以使用system命令在R中执行此操作。
I seem to remember that the new development version of Rstudio has builtin support for git. If you do not want to use that I myself am perfectly fine with using the command line in a separate console to checkin code. You can also do this from within R using the system command.
ps每日生成RStudio可以在这里找到:
ps Daily builds of RStudio can be found here:
http://www.rstudio.org/download/daily/desktop/
这篇关于从RStudio推到Github的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!