# [R-pkg-devel] MathJax for Rd files

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Thu May 14 14:21:43 CEST 2020

On 14/05/2020 5:46 a.m., Gábor Csárdi wrote:
> On Thu, May 14, 2020 at 10:27 AM Duncan Murdoch
> <murdoch.duncan using gmail.com> wrote:
>>
>> On 14/05/2020 3:30 a.m., Georgi Boshnakov wrote:
>>> The issue is not with Rstudio per se but that in devtools' development mode  help() is modified to show the Rd files in the source directory, as one would expect, but doesn't load the RdMacros. So, the issue appears when one is development mode.
>>
>> here:
>>
>> It doesn't look at the DESCRIPTION file to see if there's an RdMacros entry.
>
> Isn't that what tools::loadPkgRdMacros() does there? I believe so.

I think I've tracked it down correctly this time.

The problem appears to be in RStudio code called by
has this code:

if (rstudioapi::hasFun("previewRd")) {
rstudioapi::callFun("previewRd", x\$path)
return(invisible())
}

(This is here: