I had the following issue when bulk-downloading data from a bucket (with non-existing keys) using save_object() (related to #228 and #306)
As the current implementation uses print() in parse_aws_s3_response() for printing the http response to the terminal
in case of http errors , these options do not suppress this:
wrapping the code into suppressMessages()
try(..., silent = TRUE)
When trying to download a lot of objects, the terminal is cluttered with all the printed statements.
One option (at user side) would be to wrap it like
capture.output(aws.s3::save_object(object = key, bucket = bucket), file = 'NUL'),
but this changes to character string output.
Hi,
thanks for this great package!
I had the following issue when bulk-downloading data from a bucket (with non-existing keys) using
save_object()
(related to #228 and #306)As the current implementation uses
print()
inparse_aws_s3_response()
for printing the http response to the terminal in case of http errors , these options do not suppress this:suppressMessages()
try(..., silent = TRUE)
When trying to download a lot of objects, the terminal is cluttered with all the printed statements.
Created on 2021-09-13 by the reprex package (v2.0.1)
One option (at user side) would be to wrap it like
capture.output(aws.s3::save_object(object = key, bucket = bucket), file = 'NUL')
, but this changes to character string output.What about
print(out)
only onisTRUE(verbose)
?