I am receiving the following error when using 'Build' in RStudio server:
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
Calls: <Anonymous> ... withCallingHandlers -> withVisible -> eval -> eval -> source -> file
Execution halted
Exited with status 1.
I understand that this means knit cannot find a file in the same directory as my Rmd file.
To test I have only index.html listed in _site.yml and both the yml file and index.Rmd are in a folder 'webfiles' . The index.Rmd file is just plain text, it does not source anything in a different folder (which is a common cause of the error message according to other threads).
The only cause I can think of is the fact that I am using a symbolic link to the folder holding the files but I cannot get any further than that.
From the console:
> getwd()
[1] "/var/unis/survey"
Tools > Project Options > Build Tools, the site directory is:
/var/unis/survey/webfiles
In the RStudio IDE, I access the project files using the symbolic link so the Files panel path shows:
Home > unissym > unis > survey > webfiles
So I'm guessing I am not understanding how the file paths are working and any help would be most appreciated.