Closed muschellij2 closed 2 years ago
I'd rather set fewer rather than more options, how about adding a column to the data.frame output called "size_bytes" ?
Yeah I think that'd work too. Just figured i on the one hand you have checks on the column names or something like that it'd be an issue. On the other hand, you may have data type checks which may be different (size is character, size_bytes is likely numeric).
Lets try it see what breaks ;) it may be a chance to also inspect what the API returns, it may have some added fields from when it was first done that aren't surfaced (perhaps versioning?)
I would like the
size
(in bytes) to check against a listing to make sure all bytes are downloaded. The issue is that googleCloudStorageR automatically formats this: https://github.com/cloudyr/googleCloudStorageR/blob/ae8670ed60f7bd70f1b9399565a473f90a3134ff/R/objects.R#L94 And you can't set an option forformat_object_size
. I think if you use something like:Then you can set an
option("googleCloudStorageR.format_units" = "b")
then this should work I thinkCreated on 2022-03-07 by the reprex package (v2.0.1)