striprtf icon indicating copy to clipboard operation
striprtf copied to clipboard

Big RTF files are not readable with read_rtf

Open convernaticspeter opened this issue 2 years ago • 4 comments

Hi there,

I have a fairly big file with about 2.5MB of text, but read_rtf will result in an error because of too high stack usage. This might be an algorithmic issue that causes too many recursions.

convernaticspeter avatar Jan 30 '23 06:01 convernaticspeter

@convernaticspeter Thanks for the comment. It will be very helpful if you could provide the sample input and the error message, along with the running environment.

kota7 avatar Jan 30 '23 07:01 kota7

@kota7 Thanks for reacting this quickly!

Unfortunately github doesn't accept RTF uploads. But for a RTF file it is fairly big - I created it from multiple exports from a newspapaer database.

Using macOS on ARM with R 4.2.2 and striprtf 0.5.3.

convernaticspeter avatar Jan 30 '23 08:01 convernaticspeter

@convernaticspeter I thought you can upload zip (not sure though). Otherwise I will try reproducing it on my end.

kota7 avatar Jan 30 '23 09:01 kota7

news-article-project.zip yes, with a zip it worked - thanks!

convernaticspeter avatar Jan 30 '23 09:01 convernaticspeter