+2 votes

I'm running R ver 2.15.2 within RStudio under Windows Vista.  I've managed to install the betfaiR package but when I run a login script I receive the following error message.  (I should state that I did manage to log in and get some market information down using betfaiR and the same R version but running under Linux on a very old and slow laptop.)

Has anyone else had similar issues or can suggest the cause?

 

 
> library(betfair)
Loading required package: bitops
Loading required package: zoo
Attaching package: ‘zoo’
The following object(s) are masked from ‘package:base’:
    as.Date, as.Date.numeric
Loading required package: xts
Loading required package: iterators
Loading required package: foreach
foreach: simple, scalable parallel programming from Revolution Analytics
Use Revolution R for scalability, fault tolerance and more.
Loading required package: RCurl
> username = "********"
> password = "********"
> api_access_type = 82
> login(username, password, api_access_type)
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
in betfaiR package by AQQ676 Novice (220 points)

1 Answer

+2 votes

Answering my own question!

The issue has been dealt with in another question.  I have added the following line and everything is now fine:

 

options(RCurlOptions = list(cainfo = "c:\\path\\to\\cacert.pem"))
by AQQ676 Novice (220 points)
...