RE: Is there any chance to make mathjaxr non-mandatory in metap
Dear All,
I just submitted an updated version of mathjaxr to CRAN. As described earlier, it now contains the unminified javascript files. Thanks to Duncan, the package now makes use of an install hook to minify the javascript files upon installation (using the 'js' package if it is installed). This shaves off a bit over 1Mb from the installed package (4Mb vs 2.9Mb). So we get the best of both worlds - plain js in the source, minified when installed.
Best,
Wolfgang
>-----Original Message-----
>From: Andreas Tille [mailto:tille@debian.org]
>Sent: Friday, 29 January, 2021 18:40
>To: Dirk Eddelbuettel
>Cc: Viechtbauer, Wolfgang (SP); Michael Dewey; debian-r@lists.debian.org; Duncan
>Murdoch; James Pustejovsky
>Subject: Re: Is there any chance to make mathjaxr non-mandatory in metap
>
>Hi,
>
>On Fri, Jan 29, 2021 at 08:37:16AM -0600, Dirk Eddelbuettel wrote:
>>
>> On 29 January 2021 at 14:16, Viechtbauer, Wolfgang (SP) wrote:
>> | And just a quick follow-up from me:
>> |
>> | I now have a working mathjaxr version that contains no minified JS. By cutting
>out one of the (non-crucial) components from MathJax, I was also able to keep the
>package size below 5Mb and hence can avoid triggering the 'R CMD check' check
>warning. I will be submitting this to CRAN asap (after some final testing).
>>
>> Thank you so much!
>
>+1
>
>> I still have the open 'ticket' (around here we call them
>> 'intent to package' bug report) for it which I will update once my
>> CRANberries robot tells me this on CRAN.
>>
>> Debian is headed into a release which may slow processing of the NEW
>> (package) queue (our version of CRAN new package checks) down so all this may
>> take a moment to unravel, but hey it is open source and we (generally) have
>> (near) infinite time horizons. So eventually this will all pan out. Which is
>> how it should be -- so thanks for making that happen at your (package) end.
>
>I think we could try and ping ftpmaster about it. May be we are lucky.
>I cannot contribute honest work until 9.2. due to real life things.
>
>Kind regards
>
> Andreas.
>
>> Dirk
>>
>> | @Andreas: As for using an existing MathJax in the file system: I might look
>into this in the future, but unfortunately can't spend any time on this right now.
>> |
>> | I included Duncan and James in cc as they have also made use of mathjaxr.
>> |
>> | Best,
>> | Wolfgang
>> |
>> | >-----Original Message-----
>> | >From: Michael Dewey [mailto:lists@dewey.myzen.co.uk]
>> | >Sent: Friday, 29 January, 2021 14:59
>> | >To: Dirk Eddelbuettel; Viechtbauer, Wolfgang (SP)
>> | >Cc: Andreas Tille; debian-r@lists.debian.org
>> | >Subject: Re: Is there any chance to make mathjaxr non-mandatory in metap
>> | >
>> | >Comment in-line
>> | >
>> | >On 28/01/2021 14:27, Dirk Eddelbuettel wrote:
>> | >>
>> | >> On 27 January 2021 at 12:03, Viechtbauer, Wolfgang (SP) wrote:
>> | >> | To be 100% clear: I absolutely understand the concern with the minified
>> | >JS and I will try to find a solution (when I have the time). However, I
>> | >personally never install R packages from deb's (i.e., I always install all R
>> | >packages from source directly from CRAN). R packages are so frequently
>> | >updated - and for good reason - that I would never rely on what version has
>> | >been bundled as a deb in the past. But that's just my personal preference.
>> | >>
>> | >> So do I, and I maintain ~ 100 of them and started the whole busines (with,
>> | >> IIRC, r-cran-rodbc almost 18 years ago). I follow CRAN closely, so I just
>> | >> update to /usr/local/lib/R/site-library daily or almost daily (littler
>> | >script
>> | >> `update.r`) on my main machine, and have done so on many work machines
>> | >over
>> | >> all those years.
>> | >>
>> | >> Michael Rutter' PPA is very good if you are on Ubuntu, and updates about
>> | >once
>> | >> a week so I use that on another laptop.
>> | >>
>> | >> These Debian packages are very good and very important but they aren't the
>> | >> only way to use R, and are also sometimes stale plus there may be a Debian
>> | >> repo lag. Lastly, here for this package: if I were the maintainer, I would
>> | >> probably just try to patch mathjaxr out for the Debian package.
>> | >
>> | >If I understand that correctly that was what I suggested in an earlier
>> | >part of the thread but Andreas felt that was not suitable. Just for the
>> | >avoidance of doubt what I was proposing was to edit my macros.Rd file to
>> | >redefine the mathjaxr macros as base Rd (d)eqn, make relevant changes in
>> | >DESCRIPTION and NAMESPACE, build and check it and then send Andreas the
>> | >tar.gz
>> | >
>> | >I have not tested that but I cannot see any reason why it would not
>> | >work. I do realise I may come to regret writing that.
>> | >
>> | >>
>> | >> Dirk
>> | >>
>> | >
>> | >--
>> | >Michael
>> | >http://www.dewey.myzen.co.uk/home.html
>>
>> --
>> https://dirk.eddelbuettel.com | @eddelbuettel | edd@debian.org
>>
>
>--
>http://fam-tille.de
Reply to: