On 24 February 2025 at 22:08, Viechtbauer, Wolfgang (NP) wrote: | Like Duncan's rgl package, the mathjaxr package (https://cran.r-project.org/package=mathjaxr) also contains JS code (for MathJax). And one of the requirements to get the package onto CRAN was that the source package had to contain the unminified javascript files. The minification then happens during the installation process with the help of the 'js' package (using the lovely named uglify_files() function). So if you want to get the package on CRAN, I suspect you would have to go a similar route.
It is not only CRAN who may require it but _other downstream uses_ might too: I maintain (among other packages) rgl and mathjaxr for Debian, and Debian requires 'un-minified' sources (for the usual reasons of being able to make changes to open source code) so the compromise of 'un-minified in source, possibly minified in installed package' is something that seems to work for everybody. Cheers, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel