Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Custom printing method for results #14

Closed
ColinFay opened this issue Oct 27, 2020 · 1 comment
Closed

Custom printing method for results #14

ColinFay opened this issue Oct 27, 2020 · 1 comment
Assignees

Comments

@ColinFay
Copy link
Member

Create a custom printing method for a result.

For example:

res <- httr::GET(
  "https://api.punkapi.com/v2/beers/1"
) %>% httr::content()

library(cli)
cli::cat_rule(res[[1]]$name)
cli::cat_bullet(res[[1]]$tagline)
cli::cat_line(res[[1]]$description)
── Buzz ───────────────────────────────────────────────────────────────────────────────────────────────
● A Real Bitter Experience.
A light, crisp and bitter IPA brewed with English and American hops. A small batch brewed only once.

@ymansiaux ymansiaux self-assigned this Oct 29, 2020
@ymansiaux
Copy link
Collaborator

Je prends cette issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants