tests/testthat/_snaps/schemas.md

new() rejects data not expected for schema

Code
  new("Spreadsheet", foofy = "blah")
Condition
  Error in `check_against_schema()`:
  ! Properties not recognized for the 'Spreadsheet' schema:
  x 'foofy'
Code
  new("Spreadsheet", foofy = "blah", foo = "bar")
Condition
  Error in `check_against_schema()`:
  ! Properties not recognized for the 'Spreadsheet' schema:
  x 'foofy'
  x 'foo'

check_against_schema() errors when no schema can be found

Code
  check_against_schema(x)
Condition
  Error in `check_against_schema()`:
  ! Trying to check an object of class <googlesheets4_schema_SomeThing/googlesheets4_schema/list>, but can't get a schema.


Try the googlesheets4 package in your browser

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

googlesheets4 documentation built on July 9, 2023, 7:40 p.m.