I recently upgraded to R version 4.4.0 (2024-04-24 ucrt) and also updated the R version in RStudio via the global options.
Since the update, I am unable to open Rnw (RSweave) files. When attempting to do so, I encounter the following error message:
So far, I have tried installing and updating all the relevant packages such as
but still couldn't fix the issue. I googled it further, and I found this Github Issue related to "storybook"(https://github.com/storybookjs/storybook/issues/23787), but I am not sure if this is relevant to my case.
Could I get some insights on how to solve this issue?
I had the same issue with an older version of R, so it is definitely an RStudio problem.
I installed the previous version from here: https://docs.posit.co/previous-versions/rstudio/
I am sure there will be a patch quite soon and you can upgrade again to the newest version of RStudio.