class: center, middle, inverse, title-slide # Mini-Lecture 8 ## MP1 workshop 1 ### Ben Baumer ### SDS 192Feb 12, 2020(
http://beanumber.github.io/sds192/lectures/08-mp1_workshop_1.html
) --- ## Please use Projects! - Compartmentalize your code - Keep your Environments separate - [Using Projects](https://support.rstudio.com/hc/en-us/articles/200526207-Using-Projects) - Look for `.Rproj` file - **Submit ZIP archive of your MP1 project directory to Moodle** --- ## Watch out for Jenny... <blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">The only two things that make <a href="https://twitter.com/JennyBryan?ref_src=twsrc%5Etfw">@JennyBryan</a> 😤😠🤯. Instead use projects + here::here() <a href="https://twitter.com/hashtag/rstats?src=hash&ref_src=twsrc%5Etfw">#rstats</a> <a href="https://t.co/GwxnHePL4n">pic.twitter.com/GwxnHePL4n</a></p>— Hadley Wickham (@hadleywickham) <a href="https://twitter.com/hadleywickham/status/940021008764846080?ref_src=twsrc%5Etfw">December 11, 2017</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> (https://twitter.com/hadleywickham/status/940021008764846080?lang=en) --- ## Setup - Install [`sds192` package](https://github.com/baumer-lab/sds192) (once) ```r # install.packages("devtools") devtools::install_github("benmarwick/wordcountaddin") devtools::install_github("hadley/requirements") devtools::install_github("baumer-lab/sds192") ``` - Open **New Project...** (upper right corner of RStudio): - New Directory -> New Project - Use SDS 192 template: - File -> New File -> R Markdown -> From Template -> SDS 192 assignment --- # Collaborative workflow 1 .pull-left[ [File synchronization](https://en.wikipedia.org/wiki/File_synchronization) - Dropbox, Google Drive - free, simultaneous editing of `.Rmd` - Dropbox: watch out for conflicts! - Drive: execution? ] .pull-right[ ![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Dropbox_logo_%282013%29.svg/2000px-Dropbox_logo_%282013%29.svg.png) ![](https://www.neoncrm.com/neonraise/wp-content/uploads/2017/11/Google-Drive-Logo.png) ] --- # Collaborative workflow 2 .pull-left[ <img src="http://www.cbronline.com/wp-content/uploads/2016/06/github.jpg" class="one-col-image"> ] .pull-right[ [Version control](https://en.wikipedia.org/wiki/Version_control) - GitHub - asynchronous, professional - RStudio integration - degree of difficulty: - `git push`, `git pull` ] --- class: inverse # Work on... 1. Mini-project \#1