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
Recent version of fs causing problems in pins #364
Comments
This is probably #325, so try installing latest latest fs? |
Ah yep, you are right. Fantastic! 🙌 |
Still seeing issues with this, despite using fs v 1.5.2. Reprex:
sessionInfo:
|
I installed to the current dev version from GitHub and then I was OK. |
no luck :( |
Your reprex works for me with CRAN fs and dev pins: library(pins)
board2 <- board_url(c("penguins" = "https://colorado.rstudio.com/rsc/example_pin/",
"katiemtcars" = "https://colorado.rstudio.com/rsc/content/f88b195a-eefd-42a4-a219-1efe63169cbf/")
)
pin_read(board2, "penguins")
#> # A tibble: 344 × 8
#> species island bill_length_mm bill_depth_mm flipper_length_mm body_mass_g
#> <fct> <fct> <dbl> <dbl> <int> <int>
#> 1 Adelie Torgersen 39.1 18.7 181 3750
#> 2 Adelie Torgersen 39.5 17.4 186 3800
#> 3 Adelie Torgersen 40.3 18 195 3250
#> 4 Adelie Torgersen NA NA NA NA
#> 5 Adelie Torgersen 36.7 19.3 193 3450
#> 6 Adelie Torgersen 39.3 20.6 190 3650
#> 7 Adelie Torgersen 38.9 17.8 181 3625
#> 8 Adelie Torgersen 39.2 19.6 195 4675
#> 9 Adelie Torgersen 34.1 18.1 193 3475
#> 10 Adelie Torgersen 42 20.2 190 4250
#> # … with 334 more rows, and 2 more variables: sex <fct>, year <int>
pin_read(board2, "katiemtcars")
#> mpg cyl disp hp drat wt qsec vs am gear carb
#> Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4
#> Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4
#> Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1
#> Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1
#> Hornet Sportabout 18.7 8 360 175 3.15 3.440 17.02 0 0 3 2
#> Valiant 18.1 6 225 105 2.76 3.460 20.22 1 0 3 1 Created on 2021-12-10 by the reprex package (v2.0.1) |
FWIW @kmasiello your error is |
Curious @hadley if the reprex works for you repeatedly. @ivelasq and I have both experienced it failing after successive tries. In one instance, it would read repeatedly just fine, but then fail once the board_url() call was rerun. |
solved with dev version of pins 1.0.0.9000 🎉 |
I am having trouble with the most recent versions of fs together with pins.
With fs 1.5.0:
Created on 2021-12-09 by the reprex package (v2.0.1)
With fs 1.5.1:
Created on 2021-12-09 by the reprex package (v2.0.1)
I believe (based on stepping through this via
debugonce()
) that the problem is withfs::dir_create(cache_path)
in thepin_meta
methods for Connect, Azure, etc.cc @hadley
The text was updated successfully, but these errors were encountered: