I updated R to version 4.3.0 a few days ago. Since then have off and on run into this problem where instead of seeing a character string, R thinks I am referring to an object and tells me the object is not found. An example is when I ran
plot_sim_result(sim = readRDS(file.path(sim.dir, "sim.rds")),
...)
it gives this error:
Error in plot_sim_result(sim = readRDS(file.path(sim.dir, "sim.rds")), :
object '"sim.rds"' not found
If I run either
file.path(sim.dir, "sim.rds")
or
readRDS(file.path(sim.dir, "sim.rds"))
it has no problem.
The funny thing is R starts out dealing with this kind of request just fine, and then some time into the session it starts doing this. I shut R down and open it up again, and it keeps doing it.
This problem happens with other functions, too. The common thread is that the character string is an argument in the function.
I am using R 4.3.0 on a MacBook, macOS Big SUR 11.7.6. Rstudio tells me it's up to date.
Thank you for any pointers to what may be going on and how to fix it.