diff --git a/dev/apple-touch-icon-120x120.png b/dev/apple-touch-icon-120x120.png index c899d071..27155a02 100644 Binary files a/dev/apple-touch-icon-120x120.png and b/dev/apple-touch-icon-120x120.png differ diff --git a/dev/apple-touch-icon-152x152.png b/dev/apple-touch-icon-152x152.png index 83ea47bf..6fc84f88 100644 Binary files a/dev/apple-touch-icon-152x152.png and b/dev/apple-touch-icon-152x152.png differ diff --git a/dev/apple-touch-icon-180x180.png b/dev/apple-touch-icon-180x180.png index 97891e8c..7304c741 100644 Binary files a/dev/apple-touch-icon-180x180.png and b/dev/apple-touch-icon-180x180.png differ diff --git a/dev/apple-touch-icon-60x60.png b/dev/apple-touch-icon-60x60.png index f5c62c62..3b4b2f7e 100644 Binary files a/dev/apple-touch-icon-60x60.png and b/dev/apple-touch-icon-60x60.png differ diff --git a/dev/apple-touch-icon-76x76.png b/dev/apple-touch-icon-76x76.png index d4aa56d9..acdc56d8 100644 Binary files a/dev/apple-touch-icon-76x76.png and b/dev/apple-touch-icon-76x76.png differ diff --git a/dev/apple-touch-icon.png b/dev/apple-touch-icon.png index 610f7d0a..e3c6783f 100644 Binary files a/dev/apple-touch-icon.png and b/dev/apple-touch-icon.png differ diff --git a/dev/articles/customize-pins-metadata.html b/dev/articles/customize-pins-metadata.html index 56af5377..42a0f7bc 100644 --- a/dev/articles/customize-pins-metadata.html +++ b/dev/articles/customize-pins-metadata.html @@ -160,7 +160,7 @@

A function to store factors
 ten_letters <- factor(sample(letters, size = 10), levels = letters)
 board %>% pin_write_factor_json(ten_letters, "letters-as-json")
-#> Creating new version '20240108T172501Z-c5c22'
+#> Creating new version '20240113T004358Z-38ec1'
 #> Writing to pin 'letters-as-json'

A function to read factors @@ -170,7 +170,7 @@

A function to read factors
 board %>% pin_read("letters-as-json")
-#>  [1] "d" "j" "p" "t" "m" "o" "e" "h" "k" "x"
+#> [1] "x" "d" "z" "b" "w" "k" "g" "q" "h" "s"

Instead, we can also write a special function for reading, to reconstruct the factor including its levels:

@@ -181,7 +181,7 @@ 

A function to read factors} board %>% pin_read_factor_json("letters-as-json") -#> [1] d j p t m o e h k x +#> [1] x d z b w k g q h s #> Levels: a b c d e f g h i j k l m n o p q r s t u v w x y z

diff --git a/dev/articles/managing-custom-formats.html b/dev/articles/managing-custom-formats.html index 0e6180af..77f03c89 100644 --- a/dev/articles/managing-custom-formats.html +++ b/dev/articles/managing-custom-formats.html @@ -155,7 +155,7 @@

Upload a single filearrow::write_feather(mtcars, path, compression = "uncompressed") pin_upload(board, paths = path, name = pin_name) -#> Creating new version '20240108T172503Z-0128c'

+#> Creating new version '20240113T004401Z-0128c'

Reading from the downloaded pin is straightforward; pin_download() returns a local path that can be piped to arrow::read_feather():

@@ -195,7 +195,7 @@

Function to manage uploadingpin_write():

 pin_upload_arrow(board, x = mtcars, name = "mtcars-arrow2")
-#> Creating new version '20240108T172504Z-0128c'
+#> Creating new version '20240113T004401Z-0128c'

As before, you can pipe the result of pin_download() to your reader function:

diff --git a/dev/articles/pins-update.html b/dev/articles/pins-update.html
index 0ad4a663..0408eb69 100644
--- a/dev/articles/pins-update.html
+++ b/dev/articles/pins-update.html
@@ -148,7 +148,7 @@ 

Examples pin_write(board, head(mtcars), "mtcars") #> Guessing `type = 'rds'` -#> Creating new version '20240108T172507Z-0a03e' +#> Creating new version '20240113T004405Z-0a03e' #> Writing to pin 'mtcars' pin_read(board, "mtcars") #> mpg cyl disp hp drat wt qsec vs am gear carb @@ -187,7 +187,7 @@

Pinning filespin(path, "alphabet", board = "vignette") pin_get("alphabet", board = "vignette") -#> [1] "/tmp/RtmpR1NRHC/file2001bde27ec/alphabet/file200159c29086"

+#> [1] "/tmp/RtmpyS22io/file2059bb44f7f/alphabet/file20599d377d5"

pins 1.0.0 clearly separates the two cases of pin an object and pinning a file, so here instead of pin_write() and pin_read() you need to pin_upload() and @@ -195,9 +195,9 @@

Pinning files
 # Modern API
 board %>% pin_upload(path, "alphabet")
-#> Creating new version '20240108T172509Z-ee580'
+#> Creating new version '20240113T004406Z-ee580'
 board %>% pin_download("alphabet")
-#> [1] "~/.local/share/pins/alphabet/20240108T172509Z-ee580/file200159c29086"
+#> [1] "~/.local/share/pins/alphabet/20240113T004406Z-ee580/file20599d377d5"

Pinning a url @@ -209,7 +209,7 @@

Pinning a urlbase <- "https://raw.githubusercontent.com/rstudio/pins-r/main/tests/testthat/" (pin(paste0(base, "pin-files/first.txt"), board = "vignette")) -#> [1] "/tmp/RtmpR1NRHC/file2001bde27ec/first/first.txt"

+#> [1] "/tmp/RtmpyS22io/file2059bb44f7f/first/first.txt"

This now needs to be made explicit with the new board_url(), and since this returns a path, not a file, you need to use pin_download():

@@ -243,7 +243,7 @@

Implicit board board %>% pin_write(data.frame(x = 1:3), "test-data") #> Guessing `type = 'rds'` -#> Creating new version '20240108T172509Z-d376d' +#> Creating new version '20240113T004406Z-d376d' #> Writing to pin 'test-data' board %>% pin_read("test-data") #> x diff --git a/dev/articles/pins.html b/dev/articles/pins.html index ca3b8fb6..ff75fc53 100644 --- a/dev/articles/pins.html +++ b/dev/articles/pins.html @@ -142,7 +142,7 @@

Reading and writing datamtcars <- tibble::as_tibble(mtcars) board %>% pin_write(mtcars, "mtcars") #> Guessing `type = 'rds'` -#> Creating new version '20240108T172511Z-7c7a6' +#> Creating new version '20240113T004409Z-7c7a6' #> Writing to pin 'mtcars'

The first argument is the object to save (usually a data frame, but it can be any R object), and the second argument gives the “name” of the @@ -241,14 +241,14 @@

Metadata#> $ description: NULL #> $ tags : NULL #> $ urls : NULL -#> $ created : POSIXct[1:1], format: "2024-01-08 17:25:11" +#> $ created : POSIXct[1:1], format: "2024-01-13 00:44:09" #> $ api_version: int 1 #> $ user : list() #> $ name : chr "mtcars" #> $ local :List of 3 -#> ..$ dir : 'fs_path' chr "/tmp/RtmpT0hTbZ/pins-204d71429972/mtcars/20240108T172511Z-7c7a6" +#> ..$ dir : 'fs_path' chr "/tmp/RtmpgagdBL/pins-20a47fe0fd53/mtcars/20240113T004409Z-7c7a6" #> ..$ url : NULL -#> ..$ version: chr "20240108T172511Z-7c7a6" +#> ..$ version: chr "20240113T004409Z-7c7a6"

This shows you the metadata that’s generated by default. This includes: