Windows: Go to and click on “Download” to obtain the MikTeX distribution for Windows. ![]() See this LaTeX blog post for more details on the relative advantages. Instead of TinyTeX it is, of course, also possible to install a full LaTeX distribution, especially if this is not only needed for R/exams. Note: When producing the first PDF files with R/exams, tinytex will automatically install further required LaTeX packages and hence take somewhat longer to compile. TinyTeX can be installed from within R with: tinytex::install_tinytex() If no LaTeX distribution (like TeXLive or MikTeX) is already installed, then TinyTeX is a lightweight distribution that can be easily obtained and maintained with the tinytex R package (already installed in the step above). LaTeXįor producing PDF output, the typesetting system LaTeX is used internally by R/exams. In some setups (e.g., on Mac OS or when using an older version of R) it may be necessary to add the argument type = "source" to the command above.ĭetails: Several additional R packages, automatically installed by the command above, are needed for certain tasks: base64enc (HTML-based output: Base64 encoding of supplements), knitr (R/Markdown-based exercises), magick (turning LaTeX output into images, e.g., for TikZ graphics), png (NOPS exams: reading scanned PNG images), RCurl (ARSnova: posting exercises), RJSONIO (ARSnova: JSON format), rmarkdown (pandoc-based conversion), tinytex (PDF output: lightweight LaTeX distribution), tth (HTML output from R/LaTeX exercises). Stable version: install.packages("exams", dependencies = TRUE)ĭevelopment version: install.packages("exams", repos = "") If necessary, the development version of the package is also available, which may provide some new features or small improvements. It can be easily installed interactively from within R with a single command. The core of R/exams is the open-source R package “exams”, also available from CRAN.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |