Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor print method for boards #718

Merged
merged 3 commits into from
Feb 22, 2023
Merged

Refactor print method for boards #718

merged 3 commits into from
Feb 22, 2023

Conversation

juliasilge
Copy link
Member

Closes #714

This PR removes calling pin_list() when you print out a board (too slow) and refactors the print method to take advantage of cli functions.

@juliasilge
Copy link
Member Author

The new methods look pretty similar for the user:

library(pins)
board_connect()
#> Connecting to Posit Connect 2023.01.0 at <https://colorado.posit.co/rsc>
#> Pin board <pins_board_connect>
#> Cache size: 118K
board_local()
#> Pin board <pins_board_folder>
#> Path: '~/Library/Application Support/pins'
#> Cache size: 0

Created on 2023-02-21 with reprex v2.0.2

@juliasilge juliasilge marked this pull request as ready for review February 21, 2023 20:55
@juliasilge
Copy link
Member Author

@kmasiello Would you mind taking a look at this PR and seeing if you have any feedback or problems with using it? You can install it with devtools::install_github("rstudio/pins-r@refactor-print-method").

Copy link

@kmasiello kmasiello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dazzling!

@juliasilge juliasilge merged commit 49734c8 into main Feb 22, 2023
@juliasilge juliasilge deleted the refactor-print-method branch February 22, 2023 19:26
juliasilge added a commit that referenced this pull request Feb 22, 2023
@github-actions
Copy link

github-actions bot commented Mar 9, 2023

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reconsider print method details
2 participants