Problem with knit and pandoc

Hi, I am tryng to knit a Markdown

I receive thie message

Error running filter C:\Users\User\AppData\Local\R\win-library\4.2\rmarkdown\rmarkdown\lua\pagebreak.lua:
cannot open C:\Users\User\AppData\Local\R\win-library\4.2\rmarkdown\rmarkdown\lua\pagebreak.lua: No such file or directory
Error: pandoc document conversion failed with error 83
Execution halted

RStudio and rmarkdown are installed and updated to last versions.
rmarkdown\rmarkdown\lua\pagebreak.lua exists
No clue what can be hapenning.
Even happens with the standard empty R Markdown document.

Many thanks

I have the same problem and also don't know how to solve it. :sob:

Seems like knitr is having issues calling pandoc.

Try reinstalling pandoc/INSTALL.md at master · jgm/pandoc · GitHub

Also try installing the knitr package.