I have no sample data so pardon me. However, I am just looking for some basic information on this error. This only started occurring when I installed R 4.2.1. The full error is below. The data frame that the item is drawing from shows data when I go to the environment. Also, it occurs when I knit the document but not when I run the individual code chunk. The code chunk where this error occurs runs fine when I click the green triangle to the right.
Has anyone ever encountered this error? If so, what did you do to resolve it?
Quitting from lines 2863-2864 (Document-July-2022.Rmd)
Error in readLines(con, warn = FALSE) : cannot open the connection
Calls: <Anonymous> ... <Anonymous> -> enumerate_output_formats ->
read_utf8 -> readLines
In addition: There were 27 warnings (use warnings() to see them)
Update, I am able to temporarily resolve this issue by using setwd(S://and so on) in each of the code chunks that only lists the table or chart. Seems strange that I can resolve this by doing the setwd command in excess of 30 times in one markdown file.