Accessing multiple queries in R View

LabKey Support Forum
Accessing multiple queries in R View laurapas  2016-02-10 11:32
Status: Closed
 
Hi Jon,

R installation and packages were updated, but it's still not working within a LabKey R view.

library(Rlabkey)

peptideref <- labkey.selectRows(
  baseUrl="https://labkey-dev.roche.com:8443/labkey",
  folderPath="/gRED/QuaSAR Dev 2/QuaSAR Dev 2 results",
  schemaName="lists",
  queryName="peptidereference",
  viewName="",
  colNameOpt = "fieldname",
  containerFilter=NULL
)

str(peptideref)


Here's what we get in the View tab:

javax.script.ScriptException: javax.script.ScriptException: An error occurred when running the script 'script.R', exit code: 1).
Loading required package: RCurl
Loading required package: bitops
Loading required package: rjson
Error in function (type, msg, asError = TRUE) :
  SSL certificate problem: unable to get local issuer certificate
Calls: labkey.selectRows ... getURI -> curlPerform -> .Call -> <Anonymous> -> fun
Execution halted