Creates a new timeline. Timelines allow tests to support multiple languages.
new_timeline(x = stop("x not supplied"), dict = NULL, default_lang = "en")
Expression defining a series of test elements.
This expression will be evaluated once for every language
provided in the dictionary argument (
A call to
is a term defined in
will be translated to its definitions in each respective language.
Dictionary object as created by
If no dictionary is supplied, then
new_timeline() assumes that the current language is
default_lang. This language should be specified by a lower-case string,
e.g. 'en', as usual.
Debugging is difficult within
because of its underlying macro definition.
When building a test, we recommend defining small timelines
first and subsequently combining them.
This helps to narrow down the source of any errors.