Closed gtm19 closed 4 years ago
Have you updated/installed the package recently? We pushed an update to the package on 10 Jan which solved an issue with get_player_details()
@wiscostret I installed it for the first time yesterday.
From a bit of Googling, premature EOF
looks like a common error when querying APIs for JSON, where the connection is interrupted or refused. Since this command works when I run it interactively in R, but errors when I try to knit the RMarkdown file, my guess is that FPL's API endpoint is refusing the connection.
Thanks. Occasionally the API will refuse a connection but if the issue is consistent, I think it's likely to do with the parsing rather than your choice of console. Other users have recently reported issues with parsing from the API using the fplscrapR package, though I have not yet been able to reproduce the issues. Will take an extra look as soon as possible.
Hi, sorry for getting back to this late, was just reviewing issues again. Is this still a problem? I wasn´t able to find an reproducible issue on the parsing.
I'd say you can probably close it.
I can still replicate the issue, but only by clicking Knit at the top of RStudio. The error does not occur when running rmarkdown::render()
in the R console.
This is odd, because it appears that clicking Knit should call the render()
function, but :man_shrugging:.
Either way I think it's an RStudio issue. Perhaps even this one in particular.
Huh, strange one. Thanks for the info - I will close this issue but look into it further, see if there´s anything I can do for the next package update.
Getting the following error when trying to render an
.Rmd
code block containingfplscrapR::get_player_details()
with no arguments (so as to return this seasons' stats)