The following will walk you through installing R, RStudio, and GitHub Desktop. Though the instructions are long, it hopefully will not take you long to get set up. You will need admin access on your laptop.
If you run into trouble, you can post in the comment section at the bottom. Please, help each other out in the comments if you can solve someone’s installation issues. I will check in periodically and try to help too.
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.
Windows users: GitHub Desktop is only available for 64-bit
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.
You should not need to install Git as that comes with GitHub Desktop, however it is possible that you will need to to interact with RStudio. If so, download and install Git from git-scm.
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. If RStudio complains that it cannot find Git: 1. Make sure you set your Preferences in GitHub Desktop. 2. Download and install Git from from git-scm.
If you get an error saying that the repository cannot be found: 1. Check that you are online. 2. Run chooseCRANmirror()
and choose a mirror. 3. Repeat until you find a mirror that has the up to date packages.
From the command line in R Studio
>
).install.packages("devtools")
devtools::install_github("rstudio/bookdown")
devtools::install_github("RVerse-Tutorials/RWorkflowsetup")
install.packages('tinytex')
tinytex::install_tinytex()
Create a folder/directory on your computer for the workshop materials. You can create it anywhere you wish. Name it RWorkflow
just so we all use the same folder name for the workshop.
I have added a Disqus forum to the website. Create an account if you would like to be able to add comments/questions. This will allow people to pose questions to the group and allow me (and others) to answer.
In case we do not have internet access, I will provide the files on a thumb drive also.
You will need to fork (copy) repositories from RVerse-Tutorials for many of the labs. You can also download zip files.
https://github.com/<youraccount>/Test
You can leave project name blank. Replace <youraccount>
with your GitHub account.README.md
.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)