From 66ea0c2ec6afedc710b2d1ecbca022ac6a84348a Mon Sep 17 00:00:00 2001 From: juliasilge Date: Mon, 20 Nov 2023 19:03:14 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20rstudio/?= =?UTF-8?q?pins-r@2aa0fae99cbf2487315d2d18fcad1c7067ec44f4=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 | 34 +++++++++++----------- dev/articles/using-board-url.html | 16 +++++----- dev/favicon-16x16.png | Bin 1277 -> 1277 bytes dev/favicon-32x32.png | Bin 1936 -> 1936 bytes dev/news/index.html | 4 --- dev/pkgdown.yml | 2 +- dev/reference/board_register.html | 2 +- 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 | 18 ++++++++++-- dev/reference/pin_fetch.html | 4 +-- dev/reference/pin_find.html | 2 +- dev/reference/pin_info.html | 8 ++--- dev/reference/pin_list.html | 6 ++-- dev/reference/pin_meta.html | 18 ++++++------ dev/reference/pin_read.html | 16 +++++----- dev/reference/pin_search.html | 18 ++++++------ dev/reference/pin_versions.html | 12 ++++---- dev/reference/write_board_manifest.html | 10 +++---- dev/search.json | 2 +- 31 files changed, 110 insertions(+), 102 deletions(-) diff --git a/dev/apple-touch-icon-120x120.png b/dev/apple-touch-icon-120x120.png index c8f9dc0e107fe5bb2567b19e87b99438088a21d2..d507f3bbaa4e823cec4df47e6fd8c154d51377bf 100644 GIT binary patch delta 89 zcmext`Pp(pHM=kqiwo=Nj~kl~NIO|t85mg^m}naqSQ!}Xto?tRfq_A_#5JNMC9x#c iDmOnRGp&-r$iT>0*U(Vc$RNZJMZ*aN_w>mvGWh^JA{)g3 delta 89 zcmext`Pp(pHM^je^_pFCI5svNkajY+GBL6;wbV8+ure^XRr=nSfq_A_#5JNMC9x#c iDmOnRGp&-r$iT>0*U(Vc$RNZJMZ;>1@Q;&QWby$=q8vW} diff --git a/dev/apple-touch-icon-152x152.png b/dev/apple-touch-icon-152x152.png index 7c3c14c7c8e2b603f64497dfd4660d41589d23f5..d8beb3dc77c2efd35687ac263f3a2d5d534fd5f2 100644 GIT binary patch delta 62 zcmccPb;oN$HM=kqt1;8>^o>oLDuR|)21Zr}rrHJuRt5(0Twn4h?@>`e70nCxxjgx; GN GRq_F)U=>LK diff --git a/dev/apple-touch-icon-180x180.png b/dev/apple-touch-icon-180x180.png index eb56655b9941d45f175f5ec97bc285c630b0a86e..3b745dae3f5d1375066dfef1b276ffe23ecb843d 100644 GIT binary patch delta 62 zcmcZ=c`I^4HM=kq+bZr=cQ-aI*A}$2GBC0-Fw-_Lure^vd-U$pWGfv7RMGhTVSbad Gb@BnOwiJ&5 delta 62 zcmcZ=c`I^4HM^iT)2k(_jvJenYYUoNnHXCc7-<_ASQ!}92i$u**-A$NRg{l6EpT$S GPCfvcPZJ^l diff --git a/dev/apple-touch-icon-60x60.png b/dev/apple-touch-icon-60x60.png index c589430d661db22f8692fbee12f7189ecb887a3e..b5bc42d7fd117149b47cf68a5b348b9eead1e0c6 100644 GIT binary patch delta 62 zcmbO)Jzsi4HM=kqqe;Gf-NvRI9zjbh10yQ~Lu~^CD+7bqt`}-1|L0La6`duKabU6m GZ$1D#D-uTl delta 62 zcmbO)Jzsi4HM^jerPG$bDjS<}cm&O@OpL5d&9w~-tPBjgyru|D{?DU;D*9VoXU${- G-h2RCXcB?| diff --git a/dev/apple-touch-icon-76x76.png b/dev/apple-touch-icon-76x76.png index 48e2934ef8f8aead83d5ca4d3f7838fa726bda08..83a748f4fe2605e2e80be3c76ad802daa6856dd5 100644 GIT binary patch delta 62 zcmZ3jv|4FGHM=kq)7rGWBO9B3@C#a685jYPwt<0_fx)e{ryfr37EnMHUHzdbcJdy9 Fd;pu=6-fX9 delta 62 zcmZ3jv|4FGHM^je)$P4&=51{H!7pfTWnyGyYN2glU}a!X!}R3mr G1o8o{$rLI8 diff --git a/dev/apple-touch-icon.png b/dev/apple-touch-icon.png index a92c4802e56e961bd13673a423e2005af92c4c0f..07f614ce15f2e1c3462b77e28ac72dc9d6cff2f7 100644 GIT binary patch delta 62 zcmcZ=c`I^4HM=kqhwtY0TN|5}YYSRh85mg^SZEsA 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 '20231120T174337Z-de12b'
+#> Creating new version '20231120T190243Z-583c9'
 #> 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] "a" "f" "n" "w" "m" "p" "r" "o" "g" "h"
+#> [1] "q" "l" "r" "t" "w" "j" "c" "a" "p" "v"

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] a f n w m p r o g h +#> [1] q l r t w j c a p v #> 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 3634626c..abf29e1f 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 '20231120T174339Z-0128c'

+#> Creating new version '20231120T190246Z-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 '20231120T174339Z-0128c'
+#> Creating new version '20231120T190246Z-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 b14ca191..1d51f1f4 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 '20231120T174343Z-0a03e' +#> Creating new version '20231120T190249Z-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/RtmpwsQEZN/file212921fa4a40/alphabet/file21297695e48f"

+#> [1] "/tmp/RtmpG89pB4/file2022446360c6/alphabet/file202217924b72"

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 '20231120T174344Z-ee580'
+#> Creating new version '20231120T190251Z-ee580'
 board %>% pin_download("alphabet")
-#> [1] "~/.local/share/pins/alphabet/20231120T174344Z-ee580/file21297695e48f"
+#> [1] "~/.local/share/pins/alphabet/20231120T190251Z-ee580/file202217924b72"

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/RtmpwsQEZN/file212921fa4a40/first/first.txt"

+#> [1] "/tmp/RtmpG89pB4/file2022446360c6/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 '20231120T174345Z-d376d' +#> Creating new version '20231120T190251Z-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 503cec4f..905af4ef 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 '20231120T174347Z-7c7a6' +#> Creating new version '20231120T190254Z-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 @@ -226,14 +226,14 @@

Metadata#> $ description: NULL #> $ tags : NULL #> $ urls : NULL -#> $ created : POSIXct[1:1], format: "2023-11-20 17:43:47" +#> $ created : POSIXct[1:1], format: "2023-11-20 19:02:54" #> $ api_version: int 1 #> $ user : list() #> $ name : chr "mtcars" #> $ local :List of 3 -#> ..$ dir : 'fs_path' chr "/tmp/RtmpPrcjNv/pins-21755aedca20/mtcars/20231120T174347Z-7c7a6" +#> ..$ dir : 'fs_path' chr "/tmp/RtmpzM0trY/pins-206f21d20e41/mtcars/20231120T190254Z-7c7a6" #> ..$ url : NULL -#> ..$ version: chr "20231120T174347Z-7c7a6" +#> ..$ version: chr "20231120T190254Z-7c7a6"

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