rstudio / rmarkdown-cookbook

R Markdown Cookbook. A range of tips and tricks to make better use of R Markdown.
https://bookdown.org/yihui/rmarkdown-cookbook/
578 stars 224 forks source link

v_spaces is not recognized anymore. #386

Closed piiskop closed 1 year ago

piiskop commented 1 year ago

i used to use the method for displaying line numbers using the instructions in Add line numbers to source code however, after upgrading all the packages, it does not work anymore as v_spaces is not recognized anymore.

yihui commented 1 year ago

The internal function v_spaces() has been removed from knitr. I just updated the book to use strrep() in base R instead. Sorry about the confusion!