RStudio is a popular development environment for R.

RStudio has built-in facilities for knitr (the superb successor to Sweave) and R Markdown (a variant of Markdown), which are highly recommended for writing data analysis reports.

And RStudio has built-in facilities for git and GitHub. See this document on how to use version control with RStudio. It’s pretty straightforward.

Basically, in RStudio you want to create a Project (described further here), which is basically a directory with some special files to describe project-specific RStudio options. This Project will be your git repository. Or you can easily turn a current git repository into an RStudio Project. And then you can use items in the menu bar to commit changes and push or pull from GitHub.

Next: Other resources