powered by
s3_path_dir returns the directory portion of s3 uri
s3_path_dir
s3_path_file returns the file name portion of the s3 uri path
s3_path_file
s3_path_ext returns the last extension for a path.
s3_path_ext
s3_path_ext_remove removes the last extension and return the rest of the s3 uri.
s3_path_ext_remove
s3_path_ext_set replace the extension with a new extension.
s3_path_ext_set
s3_path_dir(path)s3_path_file(path)s3_path_ext(path)s3_path_ext_remove(path)s3_path_ext_set(path, ext)
s3_path_file(path)
s3_path_ext(path)
s3_path_ext_remove(path)
s3_path_ext_set(path, ext)
(character): A character vector of paths
(character): New file extension
if (FALSE) { # Require AWS S3 credentials s3_path_dir("s3://my_bucket1/hi.txt") s3_path_file("s3://my_bucket1/hi.txt") }
Run the code above in your browser using DataLab