From e48bd856754caa3835e2fe81123965e49ea57162 Mon Sep 17 00:00:00 2001 From: juliasilge Date: Fri, 3 Nov 2023 16:42:49 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20rstudio/?= =?UTF-8?q?pins-r@eb911e4ae0af65cd2d431480df750830c71803a5=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev/apple-touch-icon-120x120.png | Bin 7411 -> 7411 bytes dev/apple-touch-icon-152x152.png | Bin 9564 -> 9564 bytes dev/apple-touch-icon-180x180.png | Bin 11482 -> 11482 bytes dev/apple-touch-icon-60x60.png | Bin 3487 -> 3487 bytes dev/apple-touch-icon-76x76.png | Bin 4395 -> 4395 bytes dev/apple-touch-icon.png | Bin 11482 -> 11482 bytes dev/articles/customize-pins-metadata.html | 6 +-- dev/articles/managing-custom-formats.html | 4 +- dev/articles/pins-update.html | 12 ++--- dev/articles/pins.html | 44 +++++++++--------- dev/articles/using-board-url.html | 16 +++---- dev/authors.html | 5 +- dev/favicon-16x16.png | Bin 1277 -> 1277 bytes dev/favicon-32x32.png | Bin 1936 -> 1936 bytes dev/index.html | 4 +- dev/logo.png | Bin 17277 -> 17163 bytes dev/pkgdown.yml | 2 +- dev/reference/board_register.html | 2 +- .../figures/lifecycle-superseded.svg | 2 +- dev/reference/figures/logo.png | Bin 17277 -> 17163 bytes dev/reference/legacy_local.html | 2 +- dev/reference/pin.html | 2 +- dev/reference/pin_browse.html | 8 ++-- dev/reference/pin_delete.html | 6 +-- dev/reference/pin_download.html | 4 +- dev/reference/pin_fetch.html | 4 +- dev/reference/pin_find.html | 2 +- dev/reference/pin_info.html | 10 ++-- dev/reference/pin_list.html | 6 +-- dev/reference/pin_meta.html | 24 +++++----- dev/reference/pin_read.html | 18 +++---- dev/reference/pin_search.html | 18 +++---- dev/reference/pin_versions.html | 32 ++++++------- dev/reference/write_board_manifest.html | 10 ++-- dev/search.json | 2 +- 35 files changed, 123 insertions(+), 122 deletions(-) diff --git a/dev/apple-touch-icon-120x120.png b/dev/apple-touch-icon-120x120.png index 0515cc513e0199596b9c65734889adcc20c5b2f8..c6722596eb059c7da012751543af7ae5afe18e49 100644 GIT binary patch delta 97 zcmext`Pp(pB_}ttfTrxsY5wXPn|4Wi80s1rhZve!nHX9bS!x>?SQ!{dKV9&gfq_A_ k#5JNMC9x#cDmOnRGp&-r$iT>0*AR<_tQ`{3lUro+0k4)EdjJ3c delta 97 zcmext`Pp(pB`24#pn|N*`v+wkn|4Wi80Z>Wh8UV#85>y{S!x>?SQ!{B=uo@Lz`&qd l;u=wsl30>zm7AZEnO4bQWME{hYlua|#jEo&C%4Gt0|4d>9tZ#c diff --git a/dev/apple-touch-icon-152x152.png b/dev/apple-touch-icon-152x152.png index b923d50ef65781764ee53d16460f31330a5ae85b..19e562390eea3bcea7cc8b516b0a6b6d593929c7 100644 GIT binary patch delta 76 zcmccPb;oN$B_}ttfTn!;3_b3RP0A|bhPnpEA%m14RsBSLk!KVObo4z%(V>+tPBjiZ{6NC`9F^o OHaV;IWVXo$y!ilWW);2w delta 76 zcmbO)Jzsi4B`24#pn~+-9#`j$O=&#h2D*lpA%^Bw#zs~~=Gq1ZRt5$iw#Rl%{?8+Y OO|J3PQnmBiwh4nHhtn3H_$b-3^6pfGB&a@vd}g#ure@U`>&fgxm!RA Pn_T&#sdp#u5y%Gsj)NC& diff --git a/dev/apple-touch-icon.png b/dev/apple-touch-icon.png index f9b09df04c740e700fc336eef487364487cb742e..ce182ad0466e7da7cb4d9d7011a7959774ad950a 100644 GIT binary patch delta 76 zcmcZ=c`I^4B_}ttfTrTMpT-L|HZ9Z^H`FyS4ly*dGBLC=Hr6&Uure?xw*PNF*-A$W On;cV;d-vpQoqPbDMHU(W delta 76 zcmcZ=c`I^4B`24#pn@WI!<>&Bn-*$|8|WHZh8UV#85>y{8*3XFSQ!|c2&!bAY^5WG OO>QUu!JU({b@Bm%@fLvq diff --git a/dev/articles/customize-pins-metadata.html b/dev/articles/customize-pins-metadata.html index 838a458f..2bf95628 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 '20231019T173317Z-1b599'
+#> Creating new version '20231103T164213Z-b9c79'
 #> 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] "w" "g" "b" "a" "o" "d" "f" "j" "c" "k"
+#> [1] "r" "z" "t" "e" "d" "p" "y" "h" "l" "k"

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] w g b a o d f j c k +#> [1] r z t e d p y h l k #> 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 e5055044..f75f59bf 100644 --- a/dev/articles/managing-custom-formats.html +++ b/dev/articles/managing-custom-formats.html @@ -156,7 +156,7 @@

Upload a single filearrow::write_feather(mtcars, path, compression = "uncompressed") pin_upload(board, paths = path, name = pin_name) -#> Creating new version '20231019T173321Z-be312'

+#> Creating new version '20231103T164216Z-0128c'

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

@@ -196,7 +196,7 @@

Function to manage uploadingpin_write():

 pin_upload_arrow(board, x = mtcars, name = "mtcars-arrow2")
-#> Creating new version '20231019T173322Z-be312'
+#> Creating new version '20231103T164217Z-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 a3acf325..3a8c3aa5 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 '20231019T173326Z-8df40' +#> Creating new version '20231103T164221Z-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/Rtmph7Nfdk/file213a55420818/alphabet/file213a11b73ef1"

+#> [1] "/tmp/RtmpWK5vYm/file217b1ecf0a96/alphabet/file217b6a957e27"

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 '20231019T173328Z-ee580'
+#> Creating new version '20231103T164223Z-ee580'
 board %>% pin_download("alphabet")
-#> [1] "~/.local/share/pins/alphabet/20231019T173328Z-ee580/file213a11b73ef1"
+#> [1] "~/.local/share/pins/alphabet/20231103T164223Z-ee580/file217b6a957e27"

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/Rtmph7Nfdk/file213a55420818/first/first.txt"

+#> [1] "/tmp/RtmpWK5vYm/file217b1ecf0a96/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 '20231019T173329Z-59306' +#> Creating new version '20231103T164223Z-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 11f0b191..d5ce0ac9 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 '20231019T173332Z-66c17' +#> Creating new version '20231103T164226Z-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 @@ -219,21 +219,21 @@

Metadataboard %>% pin_meta("mtcars") #> List of 13 #> $ file : chr "mtcars.rds" -#> $ file_size : 'fs_bytes' int 900 -#> $ pin_hash : chr "66c17690da0cee83" +#> $ file_size : 'fs_bytes' int 901 +#> $ pin_hash : chr "7c7a6ff773cc2b57" #> $ type : chr "rds" #> $ title : chr "mtcars: a pinned 32 x 11 data frame" #> $ description: NULL #> $ tags : NULL #> $ urls : NULL -#> $ created : POSIXct[1:1], format: "2023-10-19 17:33:32" +#> $ created : POSIXct[1:1], format: "2023-11-03 16:42:26" #> $ api_version: int 1 #> $ user : list() #> $ name : chr "mtcars" #> $ local :List of 3 -#> ..$ dir : 'fs_path' chr "/tmp/RtmpgNKgRg/pins-21867f5c2dab/mtcars/20231019T173332Z-66c17" +#> ..$ dir : 'fs_path' chr "/tmp/RtmpoueoFu/pins-21cc7d5ca81b/mtcars/20231103T164226Z-7c7a6" #> ..$ url : NULL -#> ..$ version: chr "20231019T173332Z-66c17" +#> ..$ version: chr "20231103T164226Z-7c7a6"

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