Package: RTutor 2020.11.25

RTutor: Interactive R problem sets with automatic testing of solutions and automatic hints

Interactive R problem sets with automatic testing of solutions and automatic hints

Authors:Sebastian Kranz

RTutor_2020.11.25.tar.gz
RTutor_2020.11.25.zip(r-4.5)RTutor_2020.11.25.zip(r-4.4)RTutor_2020.11.25.zip(r-4.3)
RTutor_2020.11.25.tgz(r-4.4-any)RTutor_2020.11.25.tgz(r-4.3-any)
RTutor_2020.11.25.tar.gz(r-4.5-noble)RTutor_2020.11.25.tar.gz(r-4.4-noble)
RTutor_2020.11.25.tgz(r-4.4-emscripten)RTutor_2020.11.25.tgz(r-4.3-emscripten)
RTutor.pdf |RTutor.html
RTutor/json (API)

# Install 'RTutor' in R:
install.packages('RTutor', repos = c('https://skranz.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/skranz/rtutor/issues

On CRAN:

economicslearn-to-codeproblem-setrstudiortutorshinyteaching

541 exports 200 stars 5.80 score 65 dependencies 1 dependents 106 scripts

Last updated 9 months agofrom:4502cab94c (on master). Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 25 2024
R-4.5-winWARNINGSep 25 2024
R-4.5-linuxWARNINGSep 25 2024
R-4.4-winWARNINGSep 25 2024
R-4.4-macWARNINGSep 25 2024
R-4.3-winWARNINGSep 25 2024
R-4.3-macWARNINGSep 25 2024

Exports:adapt.console.err.messageadapt.empty.ps.rmdadapt.learnr.check.by.hintadapt.ps.diradapt.view.li.for.notesadd.block.complementsadd.failureadd.htmlwidget.as.shinyadd.quiz.handlersadd.successadd.te.addonadd.te.awardadd.te.blockadd.te.chunkadd.te.codeadd.te.computeadd.te.infoadd.te.itemadd.te.precomputeadd.te.preknitadd.te.settingsadd.warningall.parent.envanswer.quizargs.of.callas.named.envautcomp.function.argsauto.hintauto.hint.elseautocomp.colsautocomp.find.current.functionautocomp.jsautocomp.varsawardsbolden.part.countersbsActionButtoncan.chunk.be.editedcan.connect.to.MathJaxcan.test.chunk.with.noevalcheck.assigncheck.assign.with.multiple.solcheck.callcheck.call.argscheck.chunkcheck.classcheck.colcheck.exercisecheck.exprcheck.file.existscheck.fill.in.linescheck.functioncheck.packagecheck.problem.setcheck.ps.addincheck.ps.addin.no.active.doccheck.ps.addin.oldcheck.regressioncheck.shiny.chunkcheck.var.existscheck.variablechunk.fluidRowchunk.opt.list.to.stringchunk.opt.string.to.listchunk.output.htmlwidgetchunk.special.outputchunk.to.htmlclick.check.quizcolored.htmlcompare.call.argscompare.callscompare.formula.rhs.termscompare.ivreg.formulacompare.pipe.chainscompare.regression.formulacompare.sav.with.pscompare.valuescopy.envcopy.into.envircopy.into.missing.fieldscopy.named.envcopy.non.null.fieldscopy.ps.for.sessioncopy.stud.envcreate.cdt.task.htmlcreate.psCREATE.PS.ENVcreate.rps.chunk.htmlcreate.task.chunk.htmldatadata.explorer.uidata.plot.uidata.shiny.chunkdata.summarise.uidebug.diff.rpsdebug.show.shiny.dtdefault.out.chunk.optionsdefault.ups.savedeparse.assign.vardeparse1deploy.psDescBydescribe.calldescribe.chain.calldescribe.datadescribe.vardescribe.var.datedescribe.var.defaultdescribe.var.integerdescribe.var.internaldescribe.var.logicaldescribe.var.numericdifference.dfdisplaydynCollapsedynCollapse.clickedit.shiny.chunkeval.chain.stepseval.in.ace.consoleeval.in.consoleeval.next.chain.callexampleexample.eval.next.chain.callexample.memoiseexample.rtutor.app.skelexample.rtutor2learnrexample.scramble.call.diffsexample.word.tableexamplesexamples.args.of.callexamples.check.functionexamples.code.has.callexamples.create.psexamples.deploy.psexamples.describe.callexamples.dyn.collapseexamples.frame.psexamples.grow.listexamples.hint.reportexamples.import.logsexamples.is.ggplot.callexamples.make.var.txt.from.filesexamples.match.call.objectexamples.my.helpexamples.parse.expr.and.commentsexamples.parse.sol.rmdexamples.print.exampleexamples.qlistexamples.quizexamples.read.yamlexamples.rps.to.wpsexamples.rtutor.package.skelexamples.run.psexamples.shiny.navlistPanelexamples.shiny.tabsetexamples.shiny.test.highlightexamples.shiny.test.mathjaxexamples.show.shiny.psexamples.signif.colsexamples.str.left.ofexamples.str.to.valid.file.nameexamples.test.code.for.eexamples.translate.old.solexamples.translate.var.names.in.codeexport.solutionexport.to.rmdexport.uiextract_Rdextract.commandextract.exercise.codeextract.rmd.exercise.codefill.in.lines.to.codefill.in.lines.to.commentfind.diffsfind.diffs.data.framefind.diffs.defaultfind.diffs.environmentfind.diffs.listfind.funsfind.matching.callsfind.pandoc.pathfind.pkg.material.dirfind.pkg.rps.dirfind.varname.at.end.of.stringflags.to.stringformat.valsfun.arg.namesget.award.ui.idget.bi.te.strget.chain.failure.resultsget.children.and.fragments.ui.listget.chunk.linesget.chunk.uiget.empty.chunkget.empty.exget.empty.teget.environment.data.varget.exget.expr.src.linesget.expr.test.argsget.help.txtget.non.children.fragmentsget.or.init.psget.package.infoget.placeholderget.placeholder.symget.psget.stud.chunk.codeget.top.x.obsget.txt.blocksget.upsget.user.nameget.var.descr.dtget.var.descr.htmlget.var.descr.markdownget.view.ui.of.exgive.awardgrow.listgrowlistgrowlist.addgrowlist.to.listguess.ps.namehas.awardhas.call.placeholderhdisplayhelp.shiny.chunkhinthint.code.for.computehint.code.for.ehint.elsehint.else.activehint.for.assignhint.for.callhint.for.computehint.for.functionhint.shiny.chunkhint.stud.assignhint.stud.callhint.stud.funholds.truehtml.tablehypothesis.test.resultimport.from.rmdimport.logimport.psa.statsimport.psapps.statsimport.stud.code.from.rmdimport.var.into.stud.envinclude.ps.extra.linesinfoinit.psinit.quiz.partinit.shiny.psinit.upsinner.hint.for.call.chaininner.rtutor.eval.to.stringinner.secure.check.chunkinner.secure.check.chunk.returninstall.header.txtinstall.rtutorint.seqinternal.check.callis.assignmentis.call.placeholderis.dplyr.funis.falseis.ggplot.callis.last.chunk.of.exis.ps.deployedis.sameis.trueknit.to.htmllearnr.headerload.and.set.savload.ps.libsload.rpsload.savload.save.uiload.submissionload.upslog.eventlog.hintlog.summarymake.addons.listmake.chunk.handlersmake.chunk.input.uimake.chunk.nalimake.chunk.output.uimake.chunk.stud.envmake.chunk.task.uimake.data.explorer.handlersmake.ex.uimake.ex.ui.limake.export.handlersmake.expr.li.infomake.ggplot.codemake.hint.reportmake.initial.chunk.uimake.knit.print.funsmake.knit.print.optsmake.learnr.checks.txtmake.load.save.handlersmake.rmd.addon.txtmake.rtutor.collapse.notemake.rtutor.page.uimake.rtutor.uimake.shiny.dtmake.submissionmake.var.descr.uimake.var.txt.from.dfmake.var.txt.from.filemake.var.txt.from.filesmake.view.uimake.view.ui.limark_utf8mark.fill.in.linesmatch.call.objectmatch.call.object.envmathJaxRTutormax.size.dfmd.to.latexmemoise.fun.limove.librarymy.helpmy.help.onlinename.of.callname.rmd.chunksnew.stud.envnlistold.make.var.descr.uiold.rt.check.callold.statsopen.var.descr.collapseoutput.shiny.chunkoutput.solution.headerparse.block.argsparse.block.endsparse.block.startsparse.chunk.argsparse.chunk.endsparse.chunk.startsparse.command.lineparse.exercise.startsparse.expr.and.commentsparse.no.change.lineparse.sol.lineparse.sol.rmdparse.textparse.text.with.sourcepreknit.rpspretty.dfprint.exampleprint.named.envprint.Problemsetprint.StudEnvprint.yamlproceed.with.successfuly.checked.chunkprocess.checked.addonps.basenv.functionsps.rtutor.chunkqlistquick.dfquiz.mdquiz.part.mdquiz.part.uiquiz.uiquizDefaultsread.var.txtread.yamlread.yaml.blocksrecursive.args.of.callregister.knit.print.functionsremove.fill.in.linesremove.namesremove.upsremove.verbatim.end.chunksreplace.fieldsreplace.quizes.by.chunksreplace.whiskerrerun.solved.chunksreset.psrestore.shiny.chunkrmd.to.latexrmd.to.latex.addinrt.check.assignrt.check.callrt.exercise.checkerrt.knitrtutor.addon.quizrtutor.app.skelrtutor.check.whitelistrtutor.default.memoise.funsrtutor.default.whitelistrtutor.dispatch.html.queryrtutor.dot.levelsrtutor.eval.securertutor.eval.to.stringrtutor.ex.tab.changertutor.failed.login.uirtutor.hint.addinrtutor.knit_print.data.framertutor.knit_print.htmlwidgetrtutor.knit_print.shiny.tag.listrtutor.login.init.psartutor.login.main.default.headerrtutor.make.frame.ps.tertutor.observe.html.queryrtutor.open.psapp.clickrtutor.package.skelrtutor.parse.blockrtutor.parse.chunkrtutor.parse.columnrtutor.parse.framertutor.parse.imagertutor.parse.infortutor.parse.notertutor.parse.precomputertutor.parse.preknitrtutor.parse.referencesrtutor.parse.rowrtutor.parse.solvedrtutor.quiz.block.parsertutor.quiz.handlerrtutor.quiz.init.shinyrtutor.quiz.shiny.uirtutor.quiz.sol.txt.funrtutor.quiz.task.txt.funrtutor.show.user.sessionrtutor.skel.show.opts.stringrtutor.teacher.handlersrtutor.update.stats.panelrtutor.whitelist.reportrtutor.write.session.filertutor2learnrrtutor2learnr.chunkrtutor2learnr.txtrtutorAlertRTutorLoginAppRTutorPSAppRTutorTeacherApprun.line.shiny.chunkrun.psrun.required.previous.shiny.chunksrun.shiny.chunksame.data.frame.colssame.until.possave.rpssave.savsave.shiny.chunksave.upsscscramble.call.chainscramble.call.diffsscramble.call.diffs.innerscramble.call.objectscramble.textsecure.base.envsecure.check.chunkset.autocomplete.listset.bdf.uiset.chunk.autocomp.observerset.data.explorer.dataset.exset.knit.print.optsset.nali.namesset.psset.shiny.chunkset.upsshiny.award.uishiny.set.ex.chunkshiny.to.rmd.txtshinyQuizshow.awardshow.ex.uishow.htmlshow.psshow.rtutor.login.mainshow.rtutor.teacher.mainshow.shiny.awardshow.shiny.awardsshow.shiny.psshow.success.messageshow.view.uishow.view.ui.of.exsigma.testsignif.colssignif.or.roundsolution.shiny.chunksource.te.extra.codestandardize.assignstatsstepwise.eval.stud.exprstop.without.errorstr.to.valid.chunk.namestr.to.valid.file.namesubstitute.callsuspend.chunk.autocomp.observerte.to.rpstest.code.for.computetest.code.for.etest.H0test.H0.rejectedtest.meantest.normalitytest.variancetimedMessageto_ordinaltranslate.old.rtutor.soltranslate.var.namestranslate.var.names.in.codetrueunique.obsupdate.all.chunk.uiupdate.chunk.uiupdate.data.explorer.dataupdate.data.explorer.plotupdate.data.explorer.summariseupdate.data.explorer.uiupdate.log.test.resultupdate.teacher.statupdate.upsupdate.ups.chunk.checkups.init.shiny.psups.to.sub.filevalid.obsvar.summary.htmlvariable.selector.uiview.in.panewith.random.seedword.at.posword.xml.tablewrite.empty.pswrite.output.solutionwrite.sample.solutionxmaxxmeanxminxroundxsdxsignifyaml.bool.handler.noyaml.bool.handler.yes

Dependencies:base64encbitopsbslibcachemclicommonmarkcrayoncrosstalkdata.tabledigestdplyrdplyrExtrasDTdtplyrevaluatefansifastmapfontawesomefsgenericsgluehighrhtmltoolshtmlwidgetshttpuvhwriterjquerylibjsonliteknitrlaterlazyevallifecyclemagrittrmarkdownmemoisemimepillarpkgconfigpromisesR6rappdirsRcppRCurlrestorepointrlangrmarkdownsassshinyshinyAceshinyBSshinyEventssourcetoolsstringistringrstringtoolstibbletidyselecttinytexutf8vctrswhiskerwithrxfunxtableyaml

Readme and manuals

Help Manual

Help pageTopics
Used inside tests: adds a failure to an exerciseadd.failure
Used inside tests: adds a sucess messageadd.success
Used inside tests: adds a warningadd.warning
This is just a place holder in a hint blockauto.hint
This is just a place holder in a hint blockauto.hint.else
Show all your awardsawards
Checks an assignment to a variablecheck.assign
Checks an assignment to a variable with up to 5 possibly correct solutionscheck.assign.with.multiple.sol
Checks whether the user makes a particular function call in his code or call a particular R statementcheck.call
Test: Compare the column col of the matrix or data.frame df with either the values from the given solutions or with the result of an expression that is evaluated in the students solutioncheck.col
Test: Compare the expression check.expr evaluated in the student's environment with the solution correct.exprcheck.expr
Check whether a given file existscheck.file.exists
Checks a function written by the studentcheck.function
Checks a student problem setcheck.problem.set
Check whether an object from a call to lm, glm or some other regression function is correctcheck.regression
Test: Check whether a variable is equal to a specified expressioncheck.variable
Generate a problem set from a solution filecreate.ps
Displays the given textdisplay
Get the current problem setget.ps
Shows a hint for the current problem.hint
Show a hint only if no hint.stud.call or hint.stud.assign was triggered.hint.else
Get or set whether hint.else or auto.hint.else would be triggered.hint.else.active
Default hint for an assignmenthint.for.assign
Default hint for a callhint.for.call
Default hint for a compute blockhint.for.compute
Default hint for a functionhint.for.function
Show the hint if the student made the specified wrong assignmenthint.stud.assign
Show the hint if the student made the specified wrong callhint.stud.call
Show the hint if the student calls a specific functionhint.stud.fun
To be used in a test blockholds.true
Helper function when developing problem setsmake.hint.report
Grade your problem set and make submission filemake.submission
Set default names for the chunks of problem set rmd filesname.rmd.chunks
Reads a yaml file and returns as a listread.yaml
Generate a skeleton for a shinyapps.io app of a problem setrtutor.app.skel
Generate a package skeleton for a shiny based RTutor problem set that shall be deployed as a packagertutor.package.skel
Intermediary Function helping to build the ps.show() Options stringrtutor.skel.show.opts.string
Run a problem set from a package in the browserrun.ps
Like paste0 but returns an empty vector if some string is emptysc
Run a shiny based problem set in the browsershow.ps
Shows your progressstats
Helper function for custom test blocks. Check whether a certain null hypothesis is not significantly rejectedtest.H0
Can be used in a custom test block. Checks whether a certain H0 can be significantly rejectedtest.H0.rejected
A robust implementation of isTRUEtrue
Calls a function with a specified random.seedwith.random.seed