[Rd] Use of MathJax (or something similar) in .Rd files

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Thu Apr 30 12:19:05 CEST 2020


This sounds promising.

Also remember that user-defined macros are possible, so even if you need 
a lot of contortions to enter the code, you can simplify it at the Rd level.

Duncan Murdoch

On 30/04/2020 5:50 a.m., Gábor Csárdi wrote:
> You can probably already do this using the \if{html} conditional, and
> either including the matchjax js files in the package, or getting them
> from a CDN.
> 
> Gabor
> 
> On Thu, Apr 30, 2020 at 9:13 AM Viechtbauer, Wolfgang (SP)
> <wolfgang.viechtbauer using maastrichtuniversity.nl> wrote:
>>
>> Hello All,
>>
>> I am wondering if there has ever been any discussion/consideration given to incorporating MathJax (or something similar) into R for rendering equations in .Rd files. I know that equations are rendered beautifully in the pdf manuals, but I suspect the majority of users primarily look at the html help files when using R. While I am comfortable reading something like "B_x(a,b) = integral_0^x t^(a-1) (1-t)^(b-1) dt", it would definitely be nicer if this was shown as a 'proper' equation.
>>
>> Best,
>> Wolfgang
>>
>> ______________________________________________
>> R-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



More information about the R-devel mailing list