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

Skip files with too long filename instead of throwing an error #53

Open
MicheleNuijten opened this issue Nov 17, 2022 · 0 comments
Open

Comments

@MicheleNuijten
Copy link
Owner

When a filename is very long, it can't be opened (for some reason). This causes statcheck to throw an error. It would be better to throw an informative message instead, so that when you scan an entire folder of papers and one has a file name that's too long, you just skip the long file and still scan the rest.

Error message:

Importing HTML files...
|== | 2%Error in readChar(con, file.info(fileName)$size, useBytes = TRUE) :
cannot open the connection
In addition: Warning message:
In readChar(con, file.info(fileName)$size, useBytes = TRUE) :
cannot open file 'C:/Users/mnuijten/surfdrive/UVT/Projects/EffectivenessStatcheck/effectiveness_statcheck/articles/PS/2013/A Longitudinal Cluster-Randomized Controlled Study on the Accumulating Effects of Individualized Literacy Instruction on Students’ Reading From First Through Third Grade.htm': No such file or directory

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

No branches or pull requests

1 participant