I'm working in RStudio. I first created a knitr file in a project, and compiling the pdf worked flawlessly. Then, while I was working in different files, I activated packrat
for the project. (And later on deactivated it again)
Now, when I try to Knitr (Compile pdf) my .Rnw
file again, I get
Initializing packrat project in directory:
- "mydir"
Error in appDependencies(project) :
could not find function "available.packages"
Calls: source ... sort_c -> with_collate -> force -> sort -> appDependencies
Execution halted
I checked in RStudio's project options, and packrat is unchecked. Changing from Knitr to sweave did not help. Also, I ensured knitr is installed.
What can I do?