I am running into an issue when trying to knit Rmd.
If I tried to knit to PDF or Word, an error window would pop-up immediately, which says: Error Saving File: Access is denied. When tried to knit to HTML, the following error showed in my Rstudio Console
|............ | 17%
*Error in file(file, ifelse(append, "a", "w")) : *
- cannot open the connection*
Calls: ... -> png -> .handleSimpleError -> h -> cat -> file
In addition: Warning messages:
1: In dir.create(dirname(name), recursive = TRUE) :
- cannot create dir 'bayesian_inference_files', reason 'Permission denied'*
2: In png(..., res = dpi, units = "in") :
- unable to open file 'bayesian_inference_files/figure-html/hist-weight-1.png' for writing*
3: In png(..., res = dpi, units = "in") : opening device failed
4: In file(file, ifelse(append, "a", "w")) :
- cannot open file 'bayesian_inference.knit.md': Permission denied*
Thanks for anyone may help.