Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nops_language

Read NOPS Language Specifciation


Description

Read a NOPS language specification from a DCF file and optionally convert the language text to HTML.

Usage

nops_language(file, converter = c("none", "tth", "pandoc"))

Arguments

file

character. Path to a DCF file with a language specification. See exams2nops for a list of languages shipped in the package.

converter

character. The HTML converter to be used for the language text elements. Can be "none", "tth", or "pandoc".

Details

The NOPS exams infrastructure is internationalized and can be customized through DCF files (borrowing the format from Debian configuration files). For a detailed description see: http://www.R-exams.org/tutorials/nops_language/. The DCF files typically either contain special characters as LaTeX commands or in UTF-8 encoding. To handle the former case, a converter can be applied to convert the language texts to HTML.

Value

A list with all language components provided by the DCF file.

See Also

Examples

## English
en <- nops_language("en")
names(en)
en$NoChanges

## French (LaTeX vs. HTML)
nops_language("fr", converter = "none")$NoChanges
nops_language("fr", converter = "tth")$NoChanges
if (requireNamespace("rmarkdown") && rmarkdown::pandoc_available()) {
nops_language("fr", converter = "pandoc")$NoChanges
}

exams

Automatic Generation of Exams in R

v2.3-6
GPL-2 | GPL-3
Authors
Achim Zeileis [aut, cre] (<https://orcid.org/0000-0003-0918-3766>), Bettina Gruen [aut] (<https://orcid.org/0000-0001-7265-4773>), Friedrich Leisch [aut] (<https://orcid.org/0000-0001-7278-1983>), Nikolaus Umlauf [aut], Mirko Birbaumer [ctb], Dominik Ernst [ctb], Patrik Keller [ctb], Niels Smits [ctb], Reto Stauffer [ctb], Kenji Sato [ctb]
Initial release
2020-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.