this is because of Microsoft has the issue of backward compatibility, so almost every program has two versions, one 64-bit and the other is 32-bit. The task manager shows 32-bit R, but in the background 64-bit R is running. You can verify this by typing sessionInfo() in your R console. It will show 64-bit platform. Hope this helps.