Releases: cloudyr/aws.s3
0.3.22
API changes
-
put_objectsplits the use of files vs payload into two separate arguments:whatis now the first positional argument and expects actual content to store,fileis now a named argument used to store file content. The previous use offilefor both was very dangerous as it stored filenames instead of content without warning if the file was not found.Old code that intended to use files such as:
put_object("foo.csv", "bucket")
has to use either of
put_object(file="foo.csv", bucket="bucket") ## or (not recommended) put_object(, "bucket", file="foo.csv")
Any code that used
file=explicitly and no positional arguments doesn't need to change.
Features
put_objectsupports connections, including non-seekable ones
Bugfixes
CRAN Patch
This is a very small patch release to fix a failing test on CRAN.
CRAN Release
This release includes a number of user-visible changes, mostly expanding functionality with some new functions and arguments. It also includes a number of (mostly minor) bug fixes.
User-visible changes
put_object()andput_bucket() now expose explicitacl` arguments. (#137)get_acl()andput_acl()are now exported. (#137)- Added a high-level
put_folder()convenience function for creating an empty pseudo-folder. save_object()now useshttr::write_disk()to avoid having to load a file into memory. (#158, h/t Arturo Saco)s3sync()gains adirectionargument allowing for unidirectional (upload-only or download-only) synchronization. The default remains bi-directional.- New functions
put_encryption(),get_encryption(), anddelete_encryption()implement bucket-level encryption so that encryption does not need to be specified for eachput_object()call. (#183, h/t Dan Tenenbaum) - Bumped aws.signature dependency to v0.3.7 to take advantage of automatic credential loading. (#142, #143, #144; #184, h/t Dan Tenenbaum)
- The
base_urlargument ins3HTTP()now defaults to an environment variable -AWS_S3_ENDPOINT- or the AWS S3 default in order to facilitate using the package with S3-compatible storage. (#189, #191, #194) put_bucket()now errors if the request is unsuccessful. (#132, h/t Sean Kross)- Remove usage of
endsWith()in two places to reduce (implicit) base R dependency. (#147, h/t Huang Pan)
Bug fixes
put_bucket()only includes a LocationConstraint body when the region != "us-east-1". (#171, h/t David Griswold)- Signatures are now calculated correctly when a port is specified. (#221, h/t @rvolykh)
aclargument was ignored byput_bucket(). This is now fixed. (#172)- Fixed a bug in the internal function
setup_s3_url()whenregion = "". - Fixed a bug in
s3write_using(). (#205, h/t Patrick Miller) - Fixed typos in
s3sync(). (#211, h/t Nirmal Patel) - Fixed a typo in
setup_s3_url(). (#223, h/t Peter Foley)
CRAN Release (beta)
This is a beta release of the aws.s3 package to CRAN.