Not a general answer (jcblum's done a great job of that), but does this happen only when you run it in RStudio, but not if you run it in vanilla R?
For disambiguation see: