You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f: Callback function. It should have a single argument, a raw vector containing the bytes recieved from the server. This will usually be 16k or less. It should return the length of bytes processed - if this is less than the input length, the function will terminate.
However, I don't think it currently checks the returned length of bytes processed. For example the below code will process just fine.
GET("https://jeroenooms.github.io/data/diamonds.json",
write_stream(function(x) {
print(length(x))
return(NULL) # or any value
})
)
Ideally I would like some way to terminate the handler (not just when the stream ends).
The text was updated successfully, but these errors were encountered:
According to the help page on
write_stream(f)
:However, I don't think it currently checks the returned length of bytes processed. For example the below code will process just fine.
Ideally I would like some way to terminate the handler (not just when the stream ends).
The text was updated successfully, but these errors were encountered: