dwww Home | Show directory contents | Find package

# drive_create() errors for bad input (before hitting Drive API)

    Code
      drive_create()
    Error <simpleError>
      argument "name" is missing, with no default

---

    Code
      drive_create(letters)
    Error <simpleError>
      is_string(name) is not TRUE

# drive_create() errors if parent path does not exist

    Code
      drive_create("a", path = "qweruiop")
    Error <rlang_error>
      Parent specified via `path` is invalid:
      x Does not exist.

# drive_create() errors if parent exists but is not a folder

    Code
      drive_create("a", path = x)
    Error <rlang_error>
      Parent specified via `path` is invalid:
      x Is neither a folder nor a shared drive.

# drive_create() catches invalid parameters

    Code
      (expect_error(drive_create("hi", bunny = "foofoo"), class = "gargle_error_bad_params")
      )
    Output
      <error/gargle_error_bad_params>
      These parameters are unknown:
      * 'bunny'

Generated by dwww version 1.15 on Fri May 24 02:24:44 CEST 2024.