leprechaun
leprechaun copied to clipboard
apps fail to launch when more than 1 file in inst/assets/*.js
If I add two .js scripts to inst/assets/ in a leprechaun app, the app fails.
This results from mishandling of a vector of javascript files in R/assets.R::serveAssets().
The standard serveAssets() creates a named vector: javascript = c(file = "assets/file1.js", file = "assets/file2.js") that is passed as script argument to htmlDependency.
If you don't add names to the 'javascript' vector, everything works happily.