Convert a s3 like path to a single format
Arguments
- paths
(character) one or more s3 paths
Value
vector of s3 paths (character), Of the form:
s3://<bucket>/<path>/<file>
Examples
if (FALSE) { # interactive()
path_as_s3("http://s64-test-3.s3.amazonaws.com/")
path_as_s3("https://s64-test-3.s3.amazonaws.com/")
path_as_s3(c(
"https://s64-test-3.s3.amazonaws.com/",
"https://mybucket.s3.amazonaws.com/"
))
path_as_s3(c("apple", "banana", "pear", "pineapple"))
}