check_latex_lang: Check if language can be compiled

Description Usage Arguments Value

View source: R/markup2vector.R

Description

Checks if pandoc language can be compiled given local tex distribution.

Usage

1
2
3
4
5
6
7
check_latex_lang(x)

expect_latex_lang(x, info = NULL, label = vname(x))

test_latex_lang(x)

assert_latex_lang(x, .var.name = checkmate::vname(x), add = NULL)

Arguments

x

[character(1) giving a pandoc language, same as lang in md2tex().

.var.name

[character(1)]
Name of the checked object to print in assertions. Defaults to the heuristic implemented in vname.

add

[AssertCollection]
Collection to store assertion messages. See AssertCollection.

Value

Depending on the function prefix: If the check is successful, the functions assertVector/assert_vector return x invisibly, whereas checkVector/check_vector and testVector/test_vector return TRUE. If the check is not successful, assertVector/assert_vector throws an error message, testVector/test_vector returns FALSE, and checkVector returns a string with the error message. The function expect_vector always returns an expectation.


maxheld83/pensieveR documentation built on Jan. 21, 2020, 9:15 a.m.