nops_language

0th

Percentile

Read NOPS Language Specifciation

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

Keywords
utilities
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

exams2nops, nops_eval

Aliases
  • nops_language
Examples
# NOT RUN {
## 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
}
# }
Documentation reproduced from package exams, version 2.3-6, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.