When I click file > new file > R markdown...
I receive a pop up error message that reads "required package versions could not be found: markdown 0.7is not available Check that getOption("repos") refers to a CRAN repository that contains the needed package versions"
Please can anyone help?
cderv
August 16, 2023, 11:36am
2
You need to install markdown package
Render Markdown to full and lightweight HTML/LaTeX documents with the 'commonmark' package. It also supports features that are missing in 'commonmark', such as raw HTML/LaTeX blocks, LaTeX math, superscripts, subscripts, footnotes, element...
It is still required by RStudio IDE
opened 02:45PM - 20 Sep 21 UTC
closed 07:36PM - 18 Oct 23 UTC
enhancement
knitting
Filling this here as an issue following @ronblum request
I know the IDE is ke… eping track of required R dependencies and force to install missing or outdated versions.
I believe this is tracked here: https://github.com/rstudio/rstudio/blob/main/src/cpp/session/resources/dependencies/r-packages.json
Just so you know, [last version of knitr 1.34](https://github.com/yihui/knitr/releases/tag/v1.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)
system
Closed
September 30, 2023, 11:36am
3
This topic was automatically closed 45 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.