r-lib / lintr

Static Code Analysis for R
https://lintr.r-lib.org
Other
1.2k stars 187 forks source link

Support tufte package arbitrary margin content #796

Closed inventionate closed 2 years ago

inventionate commented 3 years ago

The tufte package provides a special "marginfigure" chunk, which leads to false lintr errors (it is fine to use HTML in there):

```{marginfigure}
"The tidyverse is an opinionated collection of R packages designed for data science. 
All packages share an underlying design philosophy, grammar, and data structures."

<span style="float: right">--- Hadley Wickham</span>

Produces this error message:

02-tidyverse.Rmd:26:1: error: Unexpected '<' --- Hadley Wickham ^



I hope this can be fixed. Anyway, thank you very much for your great package!
MichaelChirico commented 3 years ago

are you getting this error in the latest b development version?

On Thu, May 6, 2021, 4:40 AM Fabian Mundt @.***> wrote:

The tufte https://github.com/rstudio/tufte package provides a special "marginfigure" chunk, which leads to false lintr errors (it is fine to use HTML in there):


<span style="float: right">--- Hadley Wickham</span>```

Produces this error message:

02-tidyverse.Rmd:26:1: error: Unexpected '<'
<span style="float: right">--- Hadley Wickham</span>
^

I hope this can be fixed. Anyway, thank you very much for your great
package!

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/jimhester/lintr/issues/796>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2BA5PIBF3TJZCJYO36ERDTMJ52DANCNFSM44G3576Q>
.
inventionate commented 3 years ago

Unfortunately yes.