我使用R包rjson
从Wunderground.com下载天气数据。我经常离开程序运行,没有问题,数据收集良好。然而,往往程序停止运行,并且我收到以下错误消息:fromJSON中的错误(paste(raw.data,collapse =“”)):未关闭的字符串
Error in fromJSON(paste(raw.data, collapse = "")) : unclosed string
In addition: Warning message:
In readLines(conn, n = -1L, ok = TRUE) :
incomplete final line found on 'http://api.wunderground.com/api/[my_API_code]/history_20121214pws:1/q/pws:IBIRMING7.json'
有谁知道这意味着什么,并且由于它收集数据,因为我想我停止我的程序如何避免呢?
非常感谢,
本
您确定该软件包名为'fromJSON'吗? 'rjson'和'RJSONIO'包都有这个名字的函数,但是我找不到一个叫做那个的包。 –
是的 - 抱歉 - 你是对的。这是rjson。 – ben18785