I kept trying to download the package including knitr, but eventually, I couldn't. An error kept popping up.
I uninstalled R and R studio, reinstalled, and restarted them, but failed to resolve the error.
I also tried to install knitr using the Tools > Install Packages method. But an error occurred as shown in the following picture:
What is exdir? What should I do?