Create ProjectTemplate project

At the console in RStudio, type

library('ProjectTemplate')create.project('letters')

This will create the folder letters in your working directory with the ProjectTemplate file
structure. The create.project() command also changes your working directory to this new
ProjectTemplate project directory.

Create RStudio project

Select New Project... from the File menu in RStudio. In the New Project dialogue, selectExisting Directory:

Browse to the newly created directory (letters in the example) and click Create Project.
A new sesson of RStudio will open and the new project will be loaded. (Note that the Git pane
within RStudio will not be available until after the final step.)

Create a new repo at Github

Create a new repo at Github. In the current example, it would be named “letters.” Do not add
any files (such as a README, .gitignore, or license) to the repo when creating it.

Initialize git repo and push to remote host

At the command line inside the project directory, type the following commands to initialize the
git repo, add the newly created template files, make your first commit, and push the commit to
the remote host. (Note that you will need to fill in your username and replace the repo name.)