我能够读取大约200MB以上的文件,但是当我尝试使用read_fwf读取非常大的文件(2GB)时,总是会收到以下错误消息。
res <- read_fwf(file=file,
fwf_positions(c(1,5,10,20,30,35,45,95,205,225,235,245,255,
325,545,555,565,575,585,595,605,615,836),
c(4,9,19,24,34,44,54,104,214,234,244,254,264,
334,554,564,574,584,594,604,614,624,836),col_names=w),
skip=9,
n_max = Inf,
progress = interactive()
)
错误消息:
Error in eval(substitute(expr), envir, enclos) : Cannot read file E:/.. output.hru
Called from: guess_types_(datasource, tokenizer, locale, n = n)
任何帮助将不胜感激!