pins-r icon indicating copy to clipboard operation
pins-r copied to clipboard

`created` in dataframe generated by `pin_versions()` doesn't update

Open juliasilge opened this issue 2 years ago • 0 comments

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.

juliasilge avatar May 15 '22 19:05 juliasilge