This package features a toolset for creating and updating website content for courses taught in R, especially in a managed environment running RStudio and/or Shiny servers.
Install from github:
devtools::install_github("whitwort/courseR")
Start a new project in the current working directory (by default, some example content will be created):
courseR::init()
Build a website and package with:
courseR::build()
See courseR.yml
for configuration options and files in templates/
to customize the generated website and R package.
You can preview the website by opening files in the dist/
subdirectory. Then, after setting things up in courseR.yml
publish your website and course application with:
courseR::publish()
There are currently a few components, all of which are configurable from the courseR.yml
file created after calling courseR::init
:
courseR::newContent()
to get a fresh course content R Markdown file.courseR
creates a course-specific R package; this is useful when students are interacting with R on a managed server, especially if you're also running RStudio Server. The course package exports some convenience functions like courseR::website
, but also helps implement a course assignment workflow. The course package is built when you call courseR::build
and published to a global R path defined in courseR.yml
with courseR::publish
.courseR::newAssignment
are built to reference solutions by instructors in the course and scaffolded into assignment R Markdowns files for students. The assignments component depends on the course package and provides automatic code checking facilities (via checkr) and a Shiny grading app.courseR.yml
for instructions about how to enable it.rmarkdown::render_site
supercedes most of what this package used to do. Also added v2.0 of the course package implementation.Copyright © 2013-2017 Gregg Whitworth and licensed under GPLv3.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.