Issue takes place when using RStudio Server Pro. Current R version is 3.4.3.
Student tries to Knit a project and receives the following error in the console:
Had no issues doing this two weeks ago, but issue started today. This is the second time this has happened. Six weeks ago, a user experienced the same issue. Resolution was to delete his account, but I'm hoping not to do that this time.
Steps to recreate issue:
- Create new project.
- Click Knit drop down on menu bar
- Receive error.
When I look in the log files, this is what I find:
28 Mar 2018 00:12:40 [rsession-user12] ERROR Failed to find function: 'rmarkdown:::default_output_format'
LOGGED FROM: call@r/RExec.cpp#381
Steps I took in attempt to resolve the issue:
-
Removed rmarkdown package from students local R library, reinstalled it and then updated the packages so that the server's rmarkdown package would work. Commands used: remove.packages('rmarkdown'); update.packages()
-
After a suggestion from a stack overflow post, I found sever 00LOCK files in the user's R directory. They were 00LOCK-rmarkdown and looked like the this was the issue. After deleting them, restarting the RStudio Server, having the user log in again on a fresh tab in Chrome, it still didn't work and I received the error above.
-
Checked the shared R library (/usr/local/R) on Math to see if there were any locked (00LOCK) files. There were none.
-
I removed the user's .rstudio directory, .RData file and .Rhistory file from their account. Had them log back in to recreate the files and still no luck.
-
Removed rmarkdown while logged in as an administrator, reinstalled it, and then updated all the packages. Still nothing.
If anybody has any suggestions on how to resolve, please let me know. I can't recreate the issue unless it is already happening. I've been banging my head against a wall trying to figure out what is wrong, but I can't seem to find an answer. Has anyone else experienced this? If more information is needed, I'll supply it.
Thanks,