I have an R source file that I cannot modify buy I know it contains an instruction that will fail, for example
x <- read.csv("C:/folder/that/does/NOT/exist/file.csv")
Is there any possible way to "externally" modify that instruction or its behaviour with, for example
x <- read.csv("C:/folder/that/exists/file.csv")
before/when sourcing it?