You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
markdown package is no more required to render a Rmd document but still asked by Knit button #9861
Just so you know, last version of knitr 1.34 has moved the markdown package from Import to Suggest. So markdown package is no more a hard dependency.
I believe this is causing the behavior I am seeing:
Create a new renv project with rmarkdown document
Install packages with last CRAN versions - markdown package won't be install anymore
Restart the project using the isolated renv library where markdown is not there.
Try to knit the document using the IDE button - a message from the IDE ask me to install the markdown package.
This package is no more required and rmarkdown::render() works ok to build the doc.
This is not really an issue because the markdown can be installed safely (by anwsering yes to install when IDE is asking).
However I don't know how the dependency graph is working but it could be suprising / puzzling for user to have a missing package after a successful install.packages("rmarkdown"). So maybe in a future version, the requirement could be often when knitr 1.34 is used.
Or maybe it used in another place in the IDE.
Anyway, just wanted to inform you of this change in knitr
System details
RStudio Edition : Desktop [Open Source]
RStudio Version : 2021.11.0.33 (can't update yet to new daily)
OS Version : Windows 10 x64 (build 19043)
R Version : R version 4.1.1 (2021-08-10)
Reacted by Lluís Revilla, eitsupi, Daniel Chen, Katie Burak, Varada Kolhatkar, Tom Mock, Joel Ostblom, G. Alexi Rodriguez-Arelis, Elio Campitelli, Jordan Schalm and 1 more
Hello.
New users may not know that the markdwon package exists (I didn't before either), so this popup may cause them to fear that they have failed to install the rmarkdown package. (e.g. rocker-org/rocker-versioned2#525)
It would be great to see this issue resolved.
Reacted by Raniere Silva, Christophe Dervieux, olivroy and Jeremy Allen
New users may not know that the markdwon package exists (I didn't before either), so this popup may cause them to fear that they have failed to install the rmarkdown package
Activity
cderv commentedon Mar 23, 2022
Found at least on occurence of painful experience for a user : https://community.rstudio.com/t/updated-version-of-markdown-package-required/132176/4
eitsupi commentedon Aug 31, 2022
Hello.
New users may not know that the
markdwonpackage exists (I didn't before either), so this popup may cause them to fear that they have failed to install thermarkdownpackage. (e.g. rocker-org/rocker-versioned2#525)It would be great to see this issue resolved.
cderv commentedon Aug 16, 2023
new occurrence of this situation at https://community.rstudio.com/t/error-when-opening-creating-new-r-markdown-document/171067
eliocamp commentedon Oct 5, 2023
Another recorder occurrence: rstudio/renv#1708
Adds description of rstudio/rstudio#9861
jeremy-allen commentedon Oct 12, 2023
Happens to me daily. Would love a fix. Happened during a live demo this week and caused many questions from the audience.
ronblum commentedon Oct 18, 2023
Verified in RStudio Desktop 2023.12.0-daily+196 on MacOS 14, using the steps in the initial post, that
markdown.markdownor any other package.Then double-checked and opened the same project in 2023.09.1+478 and confirmed that
markdownis still required.