knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

rteachtools

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

Installation

You can install the released version from GitHub with:

# install.packages("devtools")
devtools::install_github("charlotte-ngs/rteachtools")

Example

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"]], ")_")


charlotte-ngs/rteachtools documentation built on Sept. 21, 2023, 4:20 p.m.