0

I get this announcment when I try to knit my doc:

Error in file(file, ifelse(append, "a", "w")) : 
  cannot open the connection
Calls: <Anonymous> ... eval -> eval -> .handleSimpleError -> h -> cat -> file
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
  cannot open file 'H2_Miles_McAnulty.knit.md': Operation not permitted
Execution halted. 

I have my chunk set up as:

knitr::opts_chunk$set(echo = FALSE)
options(Encoding ="UTF = 8")

So, I tried what is on this post: Can't resolve error in .Rmd file <Anonymous> ... withCallingHandlers -> withVisible -> eval -> eval ->

What is wrong?

Leon Samson
  • 405
  • 3
  • 12
Mil
  • 1

1 Answers1

0

I ran into the same problem. As Roman alluded to in the comments, it was due to the lack of file permissions. Adding R to the list of allowed applications through controlled folder access on Windows Security solved the problem.

J_Ramalho
  • 1
  • 3