Creating your own R package.

Jan 10, 2020, Location TBD, 2:00pm to 5:00pm

Haley Jeppson, hjeppson@iastate.edu.
Joe Papio, joepapio@iastate.edu.
Sam Tyner, sctyner@iastate.edu.

Packages are the fundamental units of reproducible R code. Learn how to turn your code into packages that others can easily download and use. We will cover the cover basic components of an R package and how you can use other R packages to automate most of the package development of your own package.

The course will be a mix of instruction and interactive activities. It will be held in a computer lab but you are encouraged to bring your own laptops, with software already loaded. A list of software will be available at this site several days prior to the workshop.

Registration:

Sign-up is done through EventBrite.

Lectures and timetable

Date Notes Lecture and Resources
1:45 – 2:00 Install stuff This will make sure that everybody's system is up and running.
You should try to install stuff ahead of time, so that this time can be used to address potential problems.
Install Chrome, SelectorGadget, and R packages
2:00 – 3:00 Motivation and examples Easily extract data from HTML pages using rvest and SelectorGadget
1-WebScraping.Rmd
1-WebScraping.R
vanburen1837.txt
buchanan1857.txt
garfield1881.txt
coolidge1925.txt
obama2013.txt
trumpinaug.txt
3:00 – 3:30 Web APIs and Dynamic Sites Talk to APIs with httr.
1-WebScraping.Rmd
1-WebScraping.R
3:30 – 4:45 Working with non-HTML formats Easily transform XML with XML2R and JSON with jsonlite
1-WebScraping.Rmd
1-WebScraping.R
4:45 – 5:00 Questions and Survey We very much appreciate any feedback you can give us. You can find a form here: survey.

Learning outcomes

After the end of the this one course, we expect you to be able to do the following:

Useful links

Recommended Reading: