[R-pkg-devel] Rmarkdown vignette yields r inline warning on windows build

Spencer Graves @pencer@gr@ve@ @end|ng |rom e||ect|vede|en@e@org
Fri May 1 21:56:10 CEST 2020


In R Markdown, you can say, "The number `r round(pi)` will appear as 
"The number 3".  If you write "`round`", it should display "round" in a 
special font for R commands.  Meanwhile "$\sigma > 2\Phi^{-1}(q)$" 
passes the string between the two dollar signs to a LaTeX processor.  If 
you already know this, I apologize for wasting your time with this 
reply.  If you did not know this, it might help you understand the 
problem.  Spencer Graves


On 2020-05-01 14:39, Max Turgeon wrote:
> Since you're looking for suggestions and that's all I have:
>
>
> Could it be the space between the tick mark and the r? For example, does replacing ` round` with `round` (and all other instances) fix the issue?
>
>
> Max Turgeon
> Assistant Professor
> Department of Statistics
> Department of Computer Science
> University of Manitoba
> maxturgeon.ca<http://maxturgeon.ca>
>
>
> ________________________________
> From: R-package-devel <r-package-devel-bounces using r-project.org> on behalf of Matthew Young <my4 using sanger.ac.uk>
> Sent: May 1, 2020 2:24:40 PM
> To: r-package-devel using r-project.org
> Subject: [R-pkg-devel] Rmarkdown vignette yields r inline warning on windows build
>
> ********************************************************
> Caution: This message was sent from outside the University of Manitoba.
> ********************************************************
>
> I am trying to submit a package to CRAN that includes a vignette built using rmarkdown.  It passes fine on the machines I have access to (ubuntu and osx).  When I submit to CRAN using the form, it passes the Debian checks, but fails on windows with the following WARNING:
>
> ! Missing $ inserted.
> <inserted text>
>                  $
> l.1030
>
> You may need to add $ $ around a certain inline R expression `r `
>
>
> I�m really not sure what is causing this error or how to debug it.  I do not have any inline r expressions in my vignette (code here https://github.com/constantAmateur/SoupX/blob/devel/vignettes/pbmcTutorial.Rmd).  I do have back-ticked expression such as `round`, but they are not executed code.  Can anyone suggest what might be causing this issue?
>
> Many thanks,
>
> Matthew
>
>
>
> --
>   The Wellcome Sanger Institute is operated by Genome Research
>   Limited, a charity registered in England with number 1021457 and a
>   company registered in England with number 2742969, whose registered
>   office is 215 Euston Road, London, NW1 2BE.
>          [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
> 	[[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel


	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list