-
Notifications
You must be signed in to change notification settings - Fork 62
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
Error when deleting last version of a pin #837
Comments
Thanks so much for this report! I believe you have diagnosed the problem correctly, yes. I don't think we can do pin_version_exists <- function(board, name) {
versions <- pin_versions(board, name)
length(versions) > 0
} We would welcome a PR with one of these fixes if you are interested! 🙌 |
This issue 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. |
Hello,
Thanks for this great package!
I am uploading custom files to a local board. However, there is an error thrown whenever I
pin_upload()
,Here is a custom reprex that replicates this issue:
I think the issue happens within the
version_setup()
on line 162:pins-r/R/pin_versions.R
Lines 160 to 171 in 2edcccb
because in that state, the board exists without any pins (and hence without any versions).
Could a simple fix be just a check in the if statement?
If so, happy to do a PR :) Thanks!
The text was updated successfully, but these errors were encountered: