pins-r
pins-r copied to clipboard
`created` in dataframe generated by `pin_versions()` doesn't update
For board_temp()
, the datetime created
variable doesn't seem to track along with version
and is always the same:
library(pins)
b <- board_temp(versioned = TRUE)
b %>% pin_write(head(mtcars), "mtcars")
#> Guessing `type = 'rds'`
#> Creating new version '20220515T194613Z-d58f7'
#> Writing to pin 'mtcars'
Sys.sleep(5)
b %>% pin_write(tail(mtcars), "mtcars")
#> Guessing `type = 'rds'`
#> Creating new version '20220515T194618Z-98d5a'
#> Writing to pin 'mtcars'
b %>% pin_versions("mtcars")
#> # A tibble: 2 × 3
#> version created hash
#> <chr> <dttm> <chr>
#> 1 20220515T194613Z-d58f7 2022-05-15 13:46:00 d58f7
#> 2 20220515T194618Z-98d5a 2022-05-15 13:46:00 98d5a
Created on 2022-05-15 by the reprex package (v2.0.1)
I am running into this for vetiver docs, and you can also see it in the pins docs.