tests/testthat/_snaps/examples.md

All example scripts run with consistent output

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["id", "tag", "script", "status"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3, 4, 5, 6, 7]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [1, 2, 3, 4, 5, 6, 7]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null, null, null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["success.R", "warning.R", "error.R", "error.R", "prg1.R", "success.R", "warning.R"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["success", "warning", "error", "error", "success", "success", "warning"]
    }
  ]
}


Try the whirl package in your browser

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

whirl documentation built on April 16, 2025, 1:11 a.m.