Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readline crashes R #14

Open
haighr opened this issue Mar 16, 2023 · 2 comments
Open

readline crashes R #14

haighr opened this issue Mar 16, 2023 · 2 comments

Comments

@haighr
Copy link

haighr commented Mar 16, 2023

I really like your read/readline function; however, when I'm looping through 2000 'readline' commands for files approximately 6,320,000 characters each, R crashes. If I do the same thing using 'read', the operation is successful (and fast!). I can probably use string splits (on '\r\n') to recovery the line breaks, but I thought you should be aware of this issue. Cheers, Rowan
R code
for (i in 1:length(repfiles))
replist[[i]] = Kmisc::readlines(repfiles[i])

OS=MS Windows 10, Processor=Intel(R) Core(TM) i9-9980HK

@kevinushey
Copy link
Owner

Thanks for the kind words! However, I'm no longer actively developing this package. Do you have any better luck with readr::read_lines(), or readLines() in base R (which should be a fair bit faster in recent R releases)?

@haighr
Copy link
Author

haighr commented Mar 16, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants