I have a working R Markdown script but when I try to knit it, R Markdown gives the following error:
Error in loadNamespace(name) : there is no package called 'rmarkdown'
Calls: :: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
The package is installed, I tried removing and reinstalling it but got the same error.
The package is listed in installed.packages().
I should maybe add that I edited my Rprofile because I wasn't happy with the default location for packages (inspired by this post):
myPaths <- .libPaths()
myPaths <- myPaths
Is R Markdown maybe looking for the package in the old directory?
Also, I'm using the most recent versions of R (3.6.0) and RStudio (1.2.1335).
Every help is appreciated, thank you!