I run R on a linux machine that has 8GB memory. But R gives me an error "Error: cannot allocate vector of size 3.4 Gb". I'm wondering why it can not allocate 3.4 Gb on a 8GB memory machine. How to fix the problem?