Skip to content

[R] Create user-friendly wrappers around existing S3 functionality #36714

Closed

Description

@thisisnic

Describe the enhancement requested

We should write more user-friendly wrappers around the existing S3 functionality, so users can more easily work with it without having to work directly with R6 objects. The vignettes should also be updated to reflect this. Function names below are based on the fs package.

Functions which currently exist:

  • s3_bucket()

Functions to add:

  • s3_ls()
  • s3_dir_create()
  • s3_dir_delete()
  • s3_file_create()
  • s3_file_delete()
  • s3_file_copy()
  • s3_file_info()
  • s3_file_size()
  • s3_path(bucket, path)

Component(s)

R

Activity

  1. self-assigned this
    on Jul 17, 2023
  2. thisisnic commented on Jul 17, 2023

    @thisisnic
    MemberAuthor

    Let's implement these as straightforward wrappers which don't do anything additional, as we have enough functionality to support already. We can document quirks (i.e. GCS's $ls weirdness) in function docs.

  3. thisisnic commented on Sep 16, 2023

    @thisisnic
    MemberAuthor

    Closing this as this isn't a great solution as it'd complicate our API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions