In this lab
- we will cover using RStudio on Saxon or a laptop
- demonstrate RNotebooks (for more info see the RStudio page)
For why Reproducible Research is important read Yihui's post (and watch the video in the blog https://www.youtube.com/watch?v=eV9dcAGaVU8 about what happened at Duke when Reproducible Research was not used!) or https://simplystatistics.org/2014/06/06/the-real-reason-reproducible-research-is-important/, or review CaseStudies from the (StatSci Computing Bootcamp)[https://github.com/DukeStatSci/computing-bootcamp-2018]
A couple things to get everyone on the same page,
- If you don't have one, sign up for a GitHub account (it takes 1 min.)
- Go to https://github.com/join
- Enter your information
- Pick the Unlimited public repositories for free. plan
Ready?
If you have a StatSci account,
1) Go to the main page for the repository https://github.com/STA521-f19/lab1 and click on the button to clone or download on the right hand side. Copy the link.
2) Open RStudio on Saxon https://saxon.stat.duke.edu:8787 and login with your Duke netid and password.
3) Create a new Project. In RStudio, click on New Project in the file menu. Select Version Control, then Git. Enter the link you copied in Step 1 or type in https://github.com/STA521-f19/lab1.git in the Repository URL field, provide a name for the project, e.g. 'lab1', and select a directory to save your work, e.g. Labs We suggest that you make a folder for STA521 to save your work for the course.
4) On the lower right panel in RStudio, click on the Files tab. You should see a listing of the files in your directory. Click on lab1.Rmd
to open it in the RStudio editor and then follow instructions there.
For more on getting started using RStudio and git see the StatSci ComputingBootcamp slides and other materials at StatSci ComputingBootcamp
If you are unable to login to saxon in lab, please see the TA or instructor. Email [email protected] and provide your Full Name and netid.