r-lib / lintr

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

.Rnw named chunks like <<name>> is an error (missing chunk end) #2619

Open MichaelChirico opened 2 weeks ago

MichaelChirico commented 2 weeks ago

This comes up every time we try and lint the r-devel sources, e.g.

get_source_expressions('src/library/grid/vignettes/grid.Rnw')$error
# src/library/grid/vignettes/grid.Rnw:81:1: error: [NA] Missing chunk end for chunk (maybe starting at line 81).
# <<eval=FALSE>>=
# ^