-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
Installing knitr 1.37 from CRAN in R 4.1.2 failed #2087
Comments
I have no idea why that happens, but I strongly recommend that you install R via |
Thanks for the reply and suggestion! |
This could also be related to glue. There was an update the same day of the last knitr release. You could try
It may work if this is indeed the issue. |
Hi, Thanks for the suggestion. I have tried uninstalling glue. It's the same error. Uninstall glue & install knitr
install glue and install knitr
Best, |
That's really weird. knitr doesn't use glue. I don't know why your R is always trying to load glue. Do you have anything in your BTW, again, as I mentioned in my first reply, I strongly recommend that you install the cask |
Recent change in glue was to export the knitr engine but
knitr has glue as dependency through stringr, but again it should not be an issue during installation
Unless this creates somehow a weird conflicting loop but I can't reproduce. Also when you are uninstalling, uninstalling packages don't forget to restart your R session. You should retry all that with correct R version also - I don't use Mac so I don't know about that but I would trust the above ☝️ |
Oh I didn't notice that. I just looked at https://github.com/tidyverse/stringr/blob/5f48256b/DESCRIPTION#L21-L30 and I was impressed (although not surprised)... Now I tend to work on #1549 earlier next year. |
glue has been a dependency since a few years now (tidyverse/stringr@d2a0233), mainly for But glue is part of base tidyverse and quite low level so it is expected to be in most packages from tidyverse and related. stringr is really painful to install from source so I would just try to remove it for this purpose. If we don't have issue on performance. Anyway, glad it works now @jlduan. I'll close this issue. |
😓 and... it was already closed 😅 |
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. |
Hi,
Thanks for this wonderful package. I have some difficulties installing the latest 1.37 version. Tried
remotes::install_github('yihui/knitr')
, the same error.Best
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: