'R: how to copy large (>5GB) objects in S3?

How (in R) to move large objects within AWS S3 (without bringing it into local memory)?

So far I was using aws.s3::copy_object() but its not working for large objects (The specified copy source is larger than the maximum allowable size for a copy source: 5368709120).

I was trying to pass multipart = TRUE, but this also doesnt work.

Thanks for suggestions!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source