Why do I have to install RMarkdown to knit?

Viewed 80

I have the RMarkdown package installed, even though I read that RStudio (4.0.2) installs it and loads it anyway.

I run my chunks and everything works fine, but when I come to knit, R opens the RMarkdown console, with this error, even though I can see it's installed.

I have found similar questions about this error with other packages, but RMarkdown is critical to the knit process so I don't get why Knit throws the following error message:

Error in loadNamespace(name) : there is no package called 'rmarkdown' Calls: :: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted

Where do I need to install the rmarkdown package to?

SystemInfo() shows it is loaded:

other attached packages: [1] ggplot2_3.3.2 tidyr_1.1.2 rmarkdown_2.3 dplyr_1.0.2

1 Answers

I think the main issue might be the letters in the folder your file and or program is in? I had an issue with ä, ö, ü being in those once and got the same error message, maybe it is that?

Related