leprechaun icon indicating copy to clipboard operation
leprechaun copied to clipboard

apps fail to launch when more than 1 file in inst/assets/*.js

Open russHyde opened this issue 6 months ago • 0 comments

If I add two .js scripts to inst/assets/ in a leprechaun app, the app fails.

Image

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.

russHyde avatar Jul 15 '25 14:07 russHyde