Required packages not installed

I would like to know, what can be done, if the knit function does not work. It says it needs rmarkdown, bitops and some other files to be installed, but when I do, nothing changes. Is there a solution available?

Try to add this at the beginning of your .Rmd, it worked for me when I had a problem similar to yours

\```{r, echo=FALSE}
knitr::opts_chunk$set(error = TRUE)


Thank you for your help. In fact, I managed to get the problem solved by changing the files RStudio was trying to download the packages to. I tracked the problem by taking a video of the downloading process.

MAny thanks