Issue with Knitting RMarkdown Files After Updating R and RStudio: Error in comment_chars[[engine]] %||% "#"

After installing the new version of R and RStudio, there is an issue with knitting rmd files. I tried to knit even the rmd that appears automatically when you select the creation of a new rmd file in RStudio, but it also shows the error:

processing file: test.Rmd
Error in comment_chars[[engine]] %||% "#" : 
  could not find function "%||%"
Calls: <Anonymous> ... partition_chunk -> <Anonymous> -> get_option_comment
Execution halted

I deleted the old version. I have updated the packages, restarted RStudio and my computer, uninstalled and reinstalled knitr and rmarkdown, but nothing.

Does anyone know any solution?

It looks like R is looking for a function "%||%" that is not load

Try

?"%||%"

and see what package or packages show up.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.