Open maxheld83 opened 6 years ago
not all pandoc langs (hard-coded in the pkg) work on all machines; latex distros will differ, and may not have language support for all.
langs
This is a runtime concern, that we cannot know about in advance. It's not a problem when used in R, because users can deal with the error messages.
However, on shiny, the dropdown should offer only langs which actually work.
For that purpose, at shiny deploy time (or some other, one-off init point in time), we should run something like
purrr::iwalk(.x = langs, .f = function(x, y) { test_latex_lang(x) })
to establish the list of langs which actually work.
not all pandoc
langs
(hard-coded in the pkg) work on all machines; latex distros will differ, and may not have language support for all.This is a runtime concern, that we cannot know about in advance. It's not a problem when used in R, because users can deal with the error messages.
However, on shiny, the dropdown should offer only langs which actually work.
For that purpose, at shiny deploy time (or some other, one-off init point in time), we should run something like
to establish the list of langs which actually work.