repro icon indicating copy to clipboard operation
repro copied to clipboard

cryptic error in automate()

Open brandmaier opened this issue 3 years ago • 2 comments

If an RMarkdown has a broken header, where the final ---is missing, automate() gives a cryptic error:

Error in yaml_ind[[2]] : subscript out of bounds

brandmaier avatar Jan 14 '22 09:01 brandmaier

I ought to find out how knitr is doing this... I have changed the rules for what constitutes a valid YAML head a dozen times.

aaronpeikert avatar Jan 14 '22 09:01 aaronpeikert

I do my best to break it :-/

brandmaier avatar Jan 14 '22 10:01 brandmaier