drive_fields() admits it only knows about Files fields

  out <- drive_fields(x, resource = "foo")
Message <cliMessage>
  ! Currently only fields for the 'files' resource can be checked for validity.
    Nothing done.

drive_fields() detects bad fields

  out <- drive_fields(c("name", "parents", "ownedByMe", "pancakes!"))
Warning <warning>
  Omitting fields that are not recognized as part of the Files resource:
  * 'pancakes!'

Try the googledrive package in your browser

Any scripts or data that you put into this service are public.

googledrive documentation built on July 8, 2021, 5:07 p.m.