As probably everyone else working with large data and limited memory, I often come across memory problems in R. These problems become manifest in the error message:
error: cannot allocate vector of size XYZ
which results, as all error messages, in the stop of the workflow; the requested operation has not been carried out.
and sometimes the warning message:
Warning: Reached total allocation of 8061Mb: see help(memory.size)
which, as all warning messages, does not interrupt the workflow; the requested operation has been carried out.
I wonder,
Why do some memory-intense commands result in an error and others in a warning? I.e., what is the technical difference between these two?
Are results trustworthy if the warning message has been issued?