Skip to content

Latest commit

 

History

History
80 lines (56 loc) · 5.38 KB

workshop.md

File metadata and controls

80 lines (56 loc) · 5.38 KB

Workshop outline

Finish installation and prep

Make sure you've got R, RStudio, knitr, rplos, tm, ggplot2. Full instructions here

Optional Sign up for RPubs

Optional Sign up for github.com

Look around github.com as just a reader/consumer.

Check out some files, look at the commit history, read some issues. Questions?

Get a file from github.com without using Git (forgive me!)

Try (or at least consider) these low-tech ways to get stuff from GitHub, without us getting into full-blown Git installation and GitHub configuration

You can actually edit repositories, in a manner of speaking, directly from the browser. JB could demo that.

R basics, workspace and working directory, RStudio projects -- an introductory tutorial from STAT 545A

Make HTML from R and R Markdown files

See slides for visual guidance on trying RStudio's Compile Notebook feature and converting R markdown to HTML.

  • stitch_rmd() is kind of like RStudio's Compile Notebook
  • knit2html() is kind of like RStudio's Knit HTML button

Publish HTML from R and R Markdown files on RPubs

RPubs

  • Jenny's profile
  • Windows users may run into an SSL certificate problem when first attempting to upload to RPubs. Here is advice developed by the long suffering students in STAT 545A:
    • Your basic solution can be found here
    • You will need to add the line options(rpubs.upload.method = "internal") to the file Rprofile.site which will live somewhere like this: C:\Program Files\R\R-3.0.1\etc. Yes take the etc literally. There is a directory with this name.
    • You will need administrator access to edit this file, which you can get by right licking and choosing "Run as administrator" when you launch whatever you're going to use for editing.
    • Do not edit something like this with (eeeeekkk) Word. Use Notepad or even the RStudio editor. Plain text editing!
    • Another way to get permission to edit this file: Right click on the file, choose "Properties"--> "Security", and Edit to give "Full control" to "Users". Then you will be given the permission to edit the file.

Publish source as a Gist

How to publish an R script or R Markdown file -- "source" -- as a Gist.

  • You will need to sign in to github
  • Go to https://gist.github.com.
  • In the "name this file..." box, enter the name of the file.
  • Copy the entire file to the clipboard, paste into the Gist box, and click the "Create Public Gist" button.
  • Click on the "Permalink" button, in the upper right corner of the box containing your Gist (it looks like two links of a chain).
  • Capture the URL. Direct people to your Gist with this link.

Use rplos from rOpenSci to analyze scientific literature

Repository for rOpenSci part of workshop: https://github.com/SChamberlain/jennybryan