Skip to contents

Provides a structured, informative display of USAspending API response data, including metadata, pagination information, and a preview of the actual data. This method enhances the default tibble printing with API-specific context.

Usage

# S3 method for class 'usasp_tibble'
print(x, ...)

Arguments

x

A transformed API response of class 'usasp_tibble'

...

Additional arguments passed to the default tibble print method

Details

The output is organized into sections:

  1. API endpoint identification

  2. Pagination information (if present)

  3. API messages (if any)

  4. Data summary (dimensions and column names)

  5. Data preview

Note

The function uses cli package for formatted console output and falls back to the standard tibble printing method for the actual data preview