Error in doc_parse_raw(x, encoding = encoding, base_url = base_url, as_html = as_html, : internal error: Huge input lookup [1]

When I am exporting the data frame into Microsoft word format, I am getting the error as "Huge input lookup".

But I am not using any HTML or XML files.
I am getting this error only if the file is has a large number of records.
With a smaller number of records, I don't get any error and can print the output in .docx format.

I am using officer & flextable packages for output.
Please execute the below code,it will generate 10000 records.But unable to print in .DOCX format.It will show the same error.

ord<-c('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J')
srnum<-c('1' :'1000')
myft <- regulartable(df, col_keys = names(df))
my_doc <- body_add_flextable(my_doc, value = myft)
print(my_doc, target = "path/ABC.docx")   

How do I write a docx file from a dataset with a large number of records like (2000 records)?

This error i am facing after i have upgraded r version from 3.5.0 to 3.5.3. Please help me on this.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.