maxheld83 / pensieve

R package for the scientific study of human subjectivity.
https://www.maxheld.de/pensieve
GNU Affero General Public License v3.0
11 stars 2 forks source link

establish *really* working languages at shiny deploy time #404

Open maxheld83 opened 6 years ago

maxheld83 commented 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.

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.