-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fread only allows URLs on input
, not file
#4952
Comments
The problem lies in the conditional branch for the Lines 50 to 117 in ec1259a
It looks like the pattern matching using substring for URLs (https:// , ftp:// , http:// etc.) is performed only for the input argument and not done for file .
Judging by the code, I think the intent was to have To others: should I file a pull request to correct the documentation reference? That's something within my capability. |
I noticed that in the source code, but I'm not sure if that is the actual intent or if it was an oversight when writing the code. After all, as I understand it, To be defined by those in the know, I suppose. |
Great spot! I agree it was an oversight and |
The documentation for
fread
's argumentfile
statesHowever, if I try reading a file via HTTP, I can only get it to work by passing it to the generic
input
, notfile
.Created on 2021-04-12 by the reprex package (v1.0.0)
#
Output of sessionInfo()
The text was updated successfully, but these errors were encountered: