# run.ps: Run a problem set from a package in the browser In skranz/RTutor2: Complete rewrite of RTutor internals combined with armd

## Description

Only works if a package with problem sets is loaded. For problem sets stored in a local .rps file, use show.ps() instead

## Usage

 1 2 3 4 5 6 7 8 9 run.ps(user.name, ps.name = info$ps[1], dir = getwd(), package = NULL, load.sav = TRUE, sav.file = paste0(user.name, "_", ps.name, ".sav"), sample.solution = FALSE, run.solved = FALSE, import.rmd = FALSE, rmd.file = paste0(ps.name, "_", user.name, "_export.rmd"), offline = !can.connect.to.MathJax(), left.margin = 2, right.margin = 2, info = get.package.info(package), deploy.local = !make.web.app, make.web.app = FALSE, save.nothing = make.web.app, pkg.dir = path.package(info$package), rps.dir = find.pkg.rps.dir(ps.name, pkg.dir), material.dir = find.pkg.material.dir(ps.name, pkg.dir), ...) 

## Arguments

 user.name Your user name ps.name Name of the problem set. By default the first problem set name of your manually loaded RTutor problem set package. dir your working directory for the problem set package name of the package that contains your problem set load.sav Default=TRUE Shall a previously saved solution be loaded? sav.file Optional an alternative name for the saved solution sample.solution shall the sample solution be shown? run.solved if sample.solution or load.sav shall the correct chunks be automatically run when the problem set is loaded? (By default FALSE, since starting the problem set then may take quite a while) import.rmd shall the solution be imported from the rmd file specificed in the argument rmd.file rmd.file name of the .rmd file that shall be imported if import.rmd=TRUE offline (FALSE or TRUE) Do you have no internet connection. By default it is checked whether RTutor can connect to the MathJax server. If you have no internet connection, you cannot render mathematic formulas. If RTutor wrongly thinks you have an internet connection, while you don't, your chunks may not show at all. If you encounter this problem, set manually offline=TRUE. left.margin number of colums for left margin in browser window (total columns=12) right.margin number of colums for right margin in browser window (total columns=12) pkg.dir the package directory under which problem set files are searched under pkg.dir/ps/ps.name/. Will be set by default to currently loaded RTutorProblemSet package rps.dir directory of rps.files. Will be set to default for current package material.dir directory of additional problem set files. Will be set to default for current package

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