Skip to content

UCDBIS180L/BIS180LTutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BIS180LTutorials

This repository contains some learnr interactive tutorials for R.

There are currently four tutorials:

  • "Tidyverse_Introduction" introduces concepts and tools important for using tidyverse packages.
  • "ggplot" teaches basic ggplot2 plotting skills
  • "Gather_And_Spread" focuses on converting data between long and wide formats (deprecated, use Pivot)
  • "Pivot" focuses on converting data between long and wide formats
  • "Joins" illustrates how to join multiple data frames based on shared keys
  • "Stringr_and_Regex" Introduced regular expressions and string manipulation with the stringr package.

Installing the tutorials

First you need to have learnr and devtools installed.

From within R:

#only needs to be done once per computer
install.packages("learnr")
install.packages("devtools")

Then install the tutorials themselves:

devtools::install_github("UCDBIS180L/BIS180LTutorials") # only needs to be done once per computer

Starting the tutorials

When you want to actually use the tutorial, then:

learnr::run_tutorial("TUTORIAL_NAME", package = "BIS180LTutorials") 

where "TUTORIAL_NAME" gets replaced by one of "Tidyverse_Introduction", "ggplot", "Gather_And_Spread", or "Joins". (keep the quotes).

Additional resources

The material introduced in these tutorials is covered in much more detail in R for data science by Garrett Grolemund and Hadley Wickham

Serving the tutorials

If you want to serve the tutorials on a shiny server instance, then:

  • be sure that the directory containing the tutorials is owned by shiny
  • delete the .html file associated with each tutorial

About

learnr based tutorials for BIS180L R sessions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published