knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
```{js,echo=FALSE} code .sourceCode { white-space: pre-wrap; / Since CSS 2.1 / white-space: -moz-pre-wrap; / Mozilla, since 1999 / white-space: -pre-wrap; / Opera 4-6 / white-space: -o-pre-wrap; / Opera 7 / word-wrap: break-word; / Internet Explorer 5.5+ / overflow-wrap: break-word; }
```r className <- params$className organizer <- params$organizer packages <- sort(params$packages)
This is an empty repo to initialize an R project for training courses organized by r organizer
.
Please follow all instructions to set up your environment for the training.
To get started run the following code to install the latest version of the necessary packages.
packages <- `r sprintf("c(\n\t'%s'\n)", paste(packages, collapse="', \n\t'"))`
install.packages(packages)
Making use of RStudio projects greatly improves the user experience. To facilitate this users should run the following code which will recreate this project on their computer. Be sure to select the positive prompts such as yes
, yeah
, etc.
newProject <- usethis::use_course('https://github.com/jaredlander/`r className`/archive/master.zip')
After running this code you will be in an RStudio Project called r className
. You can see this in the top right of RStudio (the name in the image may be different).
knitr::include_graphics('images/ProjectCorner.png')
Data for the class is kept at data.world. Run the following code to download all the data. This requires that you are using an RStudio Project setup exactly like this repo, which is done if you followed the preceding code.
source('prep/DownloadData.r')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.