I know similar questions have been asked again. However, I\'ve tried everything I found here and on google and nothing seems to work for me.
My code is the following
Do the following first, and then run your code:
library(RCurl)
# Set SSL certs globally
options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")))
This usually corrects the issue you were experiencing.
EDIT (Aug 2014): Or better yet, try to use the httr package instead (which is a friendly wrapper of RCurl with useful default options set for you)