RStudio doesn't find rmarkdown package when knitting

@Rricarda How are you trying to knit the file? Are you clicking on the RStudio Knit button?

What happens if you try running the command directly in the R console where you were running installed.packages(), e.g.

library(rmarkdown)
render("path/to/file.Rmd")