create.ps: Generate a problem set from a solution file

Description Usage Arguments

View source: R/create_ps.r

Description

Generates .rps file, and .rmd files for empty ps , sample solution and output solution

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
create.ps(sol.file, ps.name = NULL, user.name = "ENTER A USER NAME HERE",
  sol.user.name = "Jane Doe", dir = getwd(), header = "", footer = "",
  libs = NULL, stop.when.finished = FALSE, extra.code.file = NULL,
  var.txt.file = NULL, rps.has.sol = TRUE, fragment.only = TRUE,
  add.enter.code.here = FALSE, add.shiny = TRUE, addons = NULL,
  whitelist.report = FALSE, wl = rtutor.default.whitelist(),
  use.memoise = FALSE, memoise.funs = rtutor.default.memoise.funs(),
  precomp = FALSE, preknit = FALSE, force.noeval = FALSE,
  html.data.frame = TRUE, table.max.rows = 25, round.digits = 8,
  signif.digits = 8, knit.print.opts = make.knit.print.opts(html.data.frame
  = html.data.frame, table.max.rows = table.max.rows, round.digits =
  round.digits, signif.digits = signif.digits))

Arguments

sol.file

file name of the _sol.rmd file that specifies the problem set

ps.name

the name of the problem set

user.name

can pick a default user.name (will typically not be set)

sol.user.name

the user.name set in the sample solution

dir

the directory in which all files are found and wil be saved to

libs

character vector with names of libraries that will be used by the problem set

extra.code.file

the name of an r file that contains own functions that will be accessible in the problme set

var.txt.file

name of the file that contains variable descriptions (see thee vignette for an explanation of the file format)

rps.has.sol

shall the sample solution be stored in the .rps file. Set this option to FALSE if you use problem sets in courses and don't want to assess students the sample solution easily

use.memoise

shall functions like read.csv be memoised? Data sets then only have to be loaded once. This can make problem sets run faster. Debugging may be more complicated, however.

memoise.funs

character vector of function names that will be memoised when use.memoise = TRUE. By default a list of functions that load data from a file.

precomp

shall chunk environments be computed from sample solution when problem set is generated? Default = FALSE

preknit

shall sample solution of chunks be knitted when problem set is generated. Default = FALSE

force.noeval

shall problem set only be shown in noeval mode? (Used as a security against accidentially forgetting to set noeval=TRUE in show.ps, when showing the problem set in a web app.)


skranz/RTutor3 documentation built on May 30, 2019, 2:01 a.m.