knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The package website can be found at https://charlotte-ngs.github.io/rteachtools/
The goal of rteachtools is to provide basic functionality to help in teaching courses
You can install the released version from GitHub with:
# install.packages("devtools") devtools::install_github("charlotte-ngs/rteachtools")
This is a basic example which shows you how to solve a common problem:
library(rteachtools) ## creating a new exercise document rteachtools::create_exercise(ps_ex_path = "ex/gel_ex01/gel_ex01.Rmd", pn_nr_problem = 2, pl_data = list(course_name = "Genetic Evaluation", exercise_count = 1, creation_date = format(Sys.Date(), "%Y-%m-%d"), author = "Peter von Rohr"))
cat("\n---\n\n _Latest Changes: ", format(Sys.time(), "%Y-%m-%d, %H:%M:%S"), "(", Sys.info()[["user"]], ")_")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.