I have a working Eclipse workspace for R development using the StatET plugin. I can install libraries the normal way, for example:
install.packages("rgdal")
But when I attempt to use the library:
library(rgdal)
R says:
Error in library(rgdal) : there is no package called 'rgdal'
Using the R GUI on the same computer works fine.
Also, in case it is relevent - using installed.packages() doesn't show the newly installed rgdal package when I use Eclipse. But in the R GUI it does.
It turns out, having Eclipse and the R GUI open at the same time was causing conflict, closing down the R GUI solved the issue