Is there a specific reason you have such an old version of R? Current is 3.5.3 and 3.6.0 is about to be released. If you have a chance, I can highly recommend updating R itself.
Also, since you are on Windows, you need to have Rtools to install packages the require compilation. Keep in mind that Rtools is not an R package, but external tool that you install by itself.
I don't use Windows myself, so not sure what's the best approach to install it, but I'm sure you can find some more info online.