After an update of R studio, the following error always occurs when running the code, whether it is importing data or rm(list=ls()).
Error in exists(cacheKey, where = .rs.WorkingDataEnv, inherits = FALSE) :
invalid first argument
Error in assign(cacheKey, frame, .rs.CachedDataEnv) :
attempt to use zero-length variable name
After searching for a long time, no one had the same error, so I reinstalled R directly . Enter r official website https://cran.rstudio.com/
Just update r according to your own equipment.
I reported an error again later, just restart it, and I don't understand the reason.