Rlabkey package saveBatch command causing fatal error

LabKey Support Forum (Inactive)
Rlabkey package saveBatch command causing fatal error wlt96258  2017-07-19 10:37
Status: Closed
 
Hello,

I am trying to automatically add data from an assay run into a study using an R script connected to the assay. In the script, I am trying to use the labkey.saveBatch command to do this. When the script is executed it stalls at the saveBatch command.


library(Rlabkey)
baseUrl <- "http://localhost:8080/labkey"
folderPath <- "/Demo/Demo_Study"

#gets assay information
${rLabkeySessionId}
rpPath<- "${runInfo}"

rpIn<- read.table(rpPath, col.names=c("name", "val1", "val2", "val3"),
                  header=FALSE, check.names=FALSE,
                  stringsAsFactors=FALSE, sep="\t", quote="", fill=TRUE, na.strings="");
runProps <- rpIn[1,2]
runData <- read.table(rpIn[14,2])

labkey.saveBatch(baseUrl, folderPath, assayName = "HBV_IC50", runData, "", runProps)


The batch properties field is blank because there are none in the assay.
Is there anything that I am doing wrong with this script or anything I should know when using the saveBatch command?

Thank you, William Tavis.
 
 
Jon (LabKey DevOps) responded:  2017-07-20 11:59
Hi William,

You indicated that you saw a fatal error in your subject line.

Can you send that error to us? That would help with the investigation.

Regards,

Jon