I get the following error message (translated to english by google translate):
Error in readChar (con, 5L, useBytes = TRUE):
can not open connection
Additionally: Warning message:
In readChar (con, 5L, useBytes = TRUE):
Can not open compressed file 'NA'. Reason maybe 'No such file or directory'
However, I know why I get this error message: I have a list.files()-command that should read a series of files and store the file names as a character vector. However, this list.files()-command sometimes works and sometimes does not, with no apparent pattern or reason. When it does not work, it returns an empty vector (character(0)). The code subsequently tries to read the elements of the vector using the load() function, but with an empty vector, this results in the error message given above.
I also checked the issue with the RAM using activity monitor, but everything seems fine there (memory pressure displays green all the time). Anyway, is there a more sophisticated way to check for memory overload?