use_tibble: Prepare to return a tibble

Description Usage Examples

View source: R/tibble.R

Description

[Questioning]

Does minimum setup such that a tibble returned by your package is handled using the tibble method for generics like print() or [. Presumably you care about this if you've chosen to store and expose an object with class tbl_df. Specifically:

This is necessary when your package returns a stored data object that has class tbl_df, but the package code does not make direct use of functions from the tibble package. If you do nothing, the tibble namespace is not necessarily loaded and your tibble may therefore be printed and subsetted like a base data.frame.

Usage

1

Examples

1
2
3
4
## Not run: 
use_tibble()

## End(Not run)

usethis documentation built on Oct. 25, 2021, 9:06 a.m.