-
-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All 3 knit options fail after v4 upgrade on mac #2170
Comments
Hi @splaisan, I think this is related to this is a duplicate of #1990 This error is thrown by RStudio IDE and we already opened an issue there (rstudio/rstudio#9435) it can happen when rmarkdown is not correctly installed and can't be loaded. library("rmarkdown") should not work as expected too probably. You may try reinstall the rmarkdown packages, tries to load it in R ( After that, the RStudio IDE should correctly use it. Sorry for the inconvenience. |
Thanks for the answer.
It seems that R4 is missing libraries or source files required for these packages (and maybe also for rmarkdown) After reinstalling markdown and rmarkdown (1.1 and 2.9) I still get the error when I knit. This also fails, again blaming libR.dylib
Best ====== reinstall output ========= I
|
I found that I messed up my R library when I upgraded R to v4. I probably kept R v3 libraries conflicting with R v4 I did a clean install of R and it now works, I can knit again. I will now reinstall all my R v3 libraries in their current version using biocmanager. Hope for the best |
No worries! From what I know, When you upgrade R to a new major version (3.6.3 to 4.0 for example) you need to reinstall all packages. At least this is greatly advised! R default user lib even have the major + minor version in there path usually. And this is not an issue with Rmarkdown only. It could mean some problem with other package. Glad it works now! |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
MacOS 10.14.6
RStudio 1.4.1717 (fresh reinstall)
R 4.1.0 (2021-05-18) -- "Camp Pontanezen"
Latex 2021 (fresh reinstall also tried)
Reproducible error after loading the demo RMD for any kind of knitting (tried all three, same error)
When I knit the built-in demo Rmd code I get:
Can you please suggest other things to fix this, it used to work perfectly before R4 and the latest RStudio (both upgraded together).
Thanks in advance
PS: the same R and RStudio versions work like a charm on my ubuntu server
The text was updated successfully, but these errors were encountered: