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

Max Turgeon M@x@Turgeon @end|ng |rom um@n|tob@@c@
Fri May 1 21:39:50 CEST 2020

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

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>

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,


 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

	[[alternative HTML version deleted]]

More information about the R-package-devel mailing list