Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while publishing in R pubs

Tags:

r

ssl

pubs

When I am trying to publish my work in R Pubs I am getting an error:

Error in function (type, msg, asError = TRUE)  : 
  SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Calls: rpubsUpload ... <Anonymous> -> .postForm -> .Call -> <Anonymous> -> fun
Execution halted

Is there anyway to resolve it ?

like image 902
Panchacookie Avatar asked Mar 20 '14 15:03

Panchacookie


4 Answers

Add an .Rprofile file in the directory you are sending from and place this line:

options(rpubs.upload.method = "internal")

in the .Rprofile or RProfile.site files.

like image 60
Tyler Rinker Avatar answered Nov 19 '22 22:11

Tyler Rinker


I had the similar problem. I copied the options(rpubs.upload.method = "internal") as described by @Tyler Rinker at the end of the .RProfile. The .RProfile file was located in \library\base\R folder of installation directory.

like image 25
umair durrani Avatar answered Nov 19 '22 22:11

umair durrani


I had also the same error message.
I found solution for my problem on Rstudio support page.

In short, I added:

options(rpubs.upload.method = "internal")
options(RCurlOptions = list(verbose = FALSE, capath = system.file("CurlSSL", "cacert.pem", package = "RCurl"), ssl.verifypeer = FALSE))

to R_HOME/etc/Rprofile.site.
And do not forget to change permissions for this file.

My system:

sysname    release  machine 
"Windows"  "7 x64"  "x86-64" 

R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
like image 2
AndriusZ Avatar answered Nov 19 '22 21:11

AndriusZ


You need to have an account in Rpubs. Also i have copied options(rpubs.upload.method = "internal") in .RProfile as suggested above and after doing that i just ran my .Rmd file and then published and it works fine.

like image 1
user3651657 Avatar answered Nov 19 '22 23:11

user3651657