You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broaden regex for warning banner for generated files #15216
#2085 and #2123 implemented really handy warning banners for generated files. It looks like this was mostly intended for documentation files generated by roxygen2, so the regex is quite specific:
It's great that there's an alternative regex that only looks for "do not edit by hand", but in this case it doesn't extract the alternatives information, resulting in no links being included in the warning banner.
Would it be possible to expand the first regex just a little bit so that it catches other examples of generated files, like the following that I'm hoping to use in a package vignette compilation workflow? Then it would be able to also include the link to the vignette source file:
% Generated by precompile.R: do not edit by hand
% Please edit source in vignettes/rredlist.Rmd.orig
As a follow-up, here is another example that I'd love to see covered:
---# Generated by vignettes/precompile.R: do not edit by hand.# Please edit source in vignettes/source/_rredlist.Rmdtitle: "Introduction to rredlist"author: "William Gearty"date: "2024-10-01"output: rmarkdown::html_vignettevignette: > %\VignetteIndexEntry{Introduction to rredlist} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8}---[vignette body here]
Activity
[-]Broaden regex for generated files[/-][+]Broaden regex for warning banner for generated files[/+]willgearty commentedon Oct 2, 2024
As a follow-up, here is another example that I'd love to see covered:
Add NEWS.md entry for rstudio#15216