【发布时间】:2014-01-27 09:55:15
【问题描述】:
我的问题:R json,找到不完整的最后一行
我的努力:我关注了'Incomplete final line' warning when trying to read a .csv file into R
我用这个site 来检查我的files 的有效性。这是从我的 Facebook 新闻提要中使用图形 api 收集的数据。
我的代码:
library("rjson")
work<-"C:/ContainingFolder/"
json_data <- fromJSON(paste(readLines(paste0(work,"SunwayFB.txt")), collapse=""))
我的错误:
Warning message:
In readLines(paste0(work, "SunwayFB.txt")) :
incomplete final line found on 'C:/ContainingFolder/SunwayFB.txt'
【问题讨论】: