我使用R相对较新,我正在尝试访问Web服务(AILUN),我收到错误,这可能是相当简单的事情。
我使用的是Ubuntu 12.04和R版本2.15.1
安装了包“SSOAP”的所有先决条件以下是R命令行的一步一步。这些文件是从http://ailun.stanford.edu/webservice.php
下载的getwd()
[1] "/home/gserver/Webservice"
library(SSOAP)
platformAnnotation_FindGPL <- function(array_send,ratio)
{
AILUN <- SOAPServer("http://ailun.stanford.edu/WebServ/Platform_Annotation.php")
gpl_info <- .SOAP(AILUN, "platformAnnotation_FindGPL",templfile=array_send ,matchRatio=ratio, action="/Platform_Annotation.php")
return (gpl_info)
}
con <- file("probe_ID.txt", "r")
array1 <- readLines(con)
ratio <- 30
result <- platformAnnotation_FindGPL(array1,ratio)
Error in .getClassFromCache(Class, where) :
attempt to use zero-length variable name
非常感谢任何建议或帮助!!