Thank you very much for the help!
This definitely answered my question. I wasn't familiar with pacman before.
For the curious, I've had success generating a .def file from R.dll with
*objdump.exe*, a utility that exists in prior Rtools distributions and
the current ones. With something like the R
I installed the 'devel' version of mathjaxr and tested preview_rd()
All seems to be working fine!
Thank you for the quick and useful implementation!
Best,
Olivoto
-Mensagem original-
De: Viechtbauer, Wolfgang (SP)
Enviada em: quarta-feira, 13 de maio de 2020 18:26
Para: tiagooliv...@gmai
I've added a preview_rd() function to the 'devel' version of mathjaxr:
https://github.com/wviechtb/mathjaxr
If you want to give this a try:
remotes::install_github("wviechtb/mathjaxr")
library(mathjaxr)
Then set the working dir to the root of the package you are working on. Then
use:
preview_
Definitively this is a better way to find the macros.
I think a function like 'preview_rd()' could be useful in mathjaxr
Thanks for all support
Olivoto
-Mensagem original-
De: Duncan Murdoch
Enviada em: quarta-feira, 13 de maio de 2020 16:16
Para: tiagooliv...@gmail.com; 'Viechtbauer, W
On 13/05/2020 2:30 p.m., Tiago Olivoto wrote:
Thank you so much! It works!
In my example, I've created a simple helper function, preview_rd()
preview_rd <- function(rdfile){ # without '.rd'
Rd <- file.path(paste("man/", rdfile, ".rd", sep = "")) # specify the .Rd file
you want to preview
outfil
Glad to hear that. I might consider adding a function along those lines to
mathjaxr itself, to make it easier to preview files while working on a help
page.
Best,
Wolfgang
>-Original Message-
>From: Tiago Olivoto [mailto:tiagooliv...@gmail.com]
>Sent: Wednesday, 13 May, 2020 20:31
>To:
Thank you so much! It works!
In my example, I've created a simple helper function, preview_rd()
preview_rd <- function(rdfile){ # without '.rd'
Rd <- file.path(paste("man/", rdfile, ".rd", sep = "")) # specify the .Rd file
you want to preview
outfile <- tempfile(fileext = ".html")
browseURL(tools
Thanks, Duncan. I was about to respond to suggest the same thing.
One way of getting this to work:
Sys.setenv(MATHJAXR.USECDN = "TRUE")
Rd <- file.path("/.Rd") # specify the .Rd file you want to preview
outfile <- tempfile(fileext = ".html")
browseURL(tools::Rd2HTML(Rd, outfile, macros="/mathjaxr
On 13/05/2020 12:35 p.m., Tiago Olivoto wrote:
Thanks, Wolfgang and Helmut for the explanations.
When I was trying to use
#'\if{html}{\out{'https://cdn.jsdelivr.net/npm/mathjax@3.0.5/es5/tex-chtml-full.js
#' }}
#'
#'And then typing
#' \ifelse{html}{\out{\[\sqrt{a^2}\]}}{\deqn{\sqrt{a^2}}}
My
Thanks, Wolfgang and Helmut for the explanations.
When I was trying to use
#'\if{html}{\out{'https://cdn.jsdelivr.net/npm/mathjax@3.0.5/es5/tex-chtml-full.js
#' }}
#'
#'And then typing
#' \ifelse{html}{\out{\[\sqrt{a^2}\]}}{\deqn{\sqrt{a^2}}}
My mgidi.Rd file was produced with devtools::docume
Thanks for the info! Can confirm now that I tried this (I don't usually use
RStudio). That's an RStudio issue then. My guess is that 'Preview' uses
tools::Rd2HTML() and that indeed won't automatically understand macros coming
from mathjaxr (or any add-on package for that matter). This would be a
Hi Wolfgang,
Viechtbauer, Wolfgang (SP) wrote on 2020-05-13 16:53:
Seems like you are using roxygen2. I have little experience with that, as all
my Rd files are 'handcrafted' (plus 100% organic and biodegradable).
As are mine. ;-)
In the HTML-preview of RStudio the LaTeX is indeed not parsed.
Seems like you are using roxygen2. I have little experience with that, as all
my Rd files are 'handcrafted' (plus 100% organic and biodegradable).
But what specifically do you mean by "when I try to preview the current
document as HTML"? Is this some particular functionality of roxygen2 / devtoo
Dear Wolfgang,
Thank you so much for the awesome package
I've installed mathjaxr and it worked.
I have some more questions, with a short example bellow
I created an equation in my mgidi.R file as follows
#' \loadmathjax
#' \mjsdeqn{MGIDI_i = \sum\limits_{j = 1}^f}
And then I ran devtools::documen
Hi Chris,
On 12 May 2020 at 18:00, Chris Paciorek wrote:
| 1) Does anyone happen to know why this problem with Eigen is occurring
| with clang11?
Compilers change. Languages changes. Requirements change.
Many of us have been there (e.g. witness the "excitement" about gcc-10 last
December enfor
Dear Olivoto,
There is a package now for this purpose:
https://cran.r-project.org/package=mathjaxr
https://github.com/wviechtb/mathjaxr
Best,
Wolfgang
>-Original Message-
>From: R-package-devel [mailto:r-package-devel-boun...@r-project.org] On
>Behalf Of Tiago Olivoto
>Sent: Wednesday,
16 matches
Mail list logo