0

I use below code for reading review json file. recently I have a problem for reading 1450000 and more lines...my computer cant read after 6 hours! what is the solution?

setwd("d:/yelp_dataset")
rm(list=ls())
library(jsonlite)
rev<- 'd:/yelp_dataset/review.JSON'
revu<-jsonlite::stream_in(textConnection(readLines(rev, n=1450000)),verbose=F)
clemens
  • 6,653
  • 2
  • 19
  • 31
  • setwd("d:/yelp_dataset") rm(list=ls()) library(jsonlite) rev<- 'd:/yelp_dataset/review.JSON' revu<-jsonlite::stream_in(textConnection(readLines(rev, n=1450000)),verbose=F) – mohsen dppp Jun 19 '18 at 08:46
  • How to ask a great SO question: https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example?answertab=votes#tab-top – clemens Jun 19 '18 at 08:59

0 Answers0