-
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
pin_write()
cannot set access_type
on an update for Connect
#760
Comments
Possible this was introduced by #735, where if the hash is the same the function returns before consuming the |
Seems like my read is accurate. I passed |
Here is a reprex (this pin already exists): library(pins)
b <- board_connect()
#> Connecting to Posit Connect 2023.05.0 at <https://colorado.posit.co/rsc>
b |> pin_write(
1:10,
"julia.silge/some-amazing-numbers",
access_type = "all"
)
#> Guessing `type = 'rds'`
#> ! The hash of pin "julia.silge/some-amazing-numbers" has not changed.
#> • Your pin will not be stored.
#> Error in `pin_write()`:
#> ! Arguments in `...` must be used.
#> ✖ Problematic argument:
#> • access_type = "all"
#> ℹ Did you misspell an argument name?
#> Backtrace:
#> ▆
#> 1. └─pins::pin_write(b, 1:10, "julia.silge/some-amazing-numbers", access_type = "all")
#> 2. └─rlang (local) `<fn>`()
#> 3. └─rlang:::check_dots(env, error, action, call)
#> 4. └─rlang:::action_dots(...)
#> 5. ├─base (local) try_dots(...)
#> 6. └─rlang (local) action(...) Created on 2023-08-07 with reprex v2.0.2 Here I see the "better" message ( |
Are you saying you didn't see the message about the hash being the same at all? Or rather that it was hard to pick out what was going on with multiple messages here? For folks who may be interested, we wrote about the duplicate writing behavior in this blog post. |
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. |
If a pin already exists,
update
fails when settingaccess_type
, presumably becausefind()
or some other method is called with the argument, and the argument is not used.@jspiewak
The text was updated successfully, but these errors were encountered: