If you don’t already have an account on GitHub, go to github.com and click the “sign up” link near upper right of the page. It is pretty self-explanatory. Go ahead and get a free account.
The free GitHub account does not have private repositories. Everything is public and viewable. You can upgrade (for money) and get private repositories. Or if you are a student, you can get private repositories from GitHub for free. Go to https://education.github.com/pack to sign up for your free student pack. You will need to upload proof that you are a student or faculty.
Linux users can install Git and interact with GitHub though RStudio. GitHub Desktop is not essential for the course, however it is a standard R Workflow that I will be demonstrating.
R: Make sure you have the latest version of R.
Go to https://cran.r-project.org/ and find the download link for your computer system.
RStudio: Install the latest version of RStudio. Get it from https://www.rstudio.com/products/rstudio/download and install the appropriate one for your OS.
Linux users will need to install Git for this to work. Windows/Mac users: Git comes with GitHub Desktop.
From the command line in R Studio
>
).install.packages("devtools")
devtools::install_github("RVerse-Tutorials/RWorkflowsetup")
Create a folder/directory on your computer for the workshop materials. You can create it anywhere you want. But name it RWorkflow
just so we all use the same folder name for the workshop.
In case we do not have internet access, I will provide the files on a thumb drive also.
You will need to download repositories from RVerse-Tutorials for many of the labs. Here is one way to do that. Watch a video that shows you how to do this
https://github.com/<youraccount>/Test-Website
You can leave project name blank. Replace <youraccount>
with your GitHub account.Another way is to download the repository as a zip file and unzip. Watch a video that shows you how to do this
Another way is to use the function I wrote:
library(RWorkflowsetup)
download.repo("Rmarkdown-Tutorial")
Watch a video that shows you how to do this
For other ways to download a repository, see this page.
We will not be doing this in this short course, but often you will want to install packages with C++ code. To do that, you will need Rtools (Windows) or Xcode (Mac)