From 345a36b4e2706f0e7de81bc590cf1404a532e29d Mon Sep 17 00:00:00 2001 From: juliasilge Date: Mon, 8 Jan 2024 17:25:32 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20rstudio/?= =?UTF-8?q?pins-r@62a32f5683d3f3eda9b28ed1266730e4492ca8f0=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 | 36 +++++++++++----------- dev/articles/using-board-url.html | 16 +++++----- dev/favicon-16x16.png | Bin 1277 -> 1277 bytes dev/favicon-32x32.png | Bin 1936 -> 1936 bytes 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 | 4 +-- 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 +- 30 files changed, 98 insertions(+), 98 deletions(-) diff --git a/dev/apple-touch-icon-120x120.png b/dev/apple-touch-icon-120x120.png index eaa1be4348a196cf929052c1496449beb0190d00..c899d0712c2a43337943f37df66d10e332e81324 100644 GIT binary patch delta 89 zcmext`Pp(pHM^jM_$BLSCpR`7kajY+GBU9;GS)UQure?(`^7ndfq_A_#5JNMC9x#c iDmOnRGp&-r$iT=%*T7KMz#_yDMT7hDjXINCWby$#?Hio{ delta 89 zcmext`Pp(pHM@YeyryU3pN&liq@B#HOpL9J4YdsntPBix83@c^U|>)!ag8WRNi0dV i%FR#7OsixtGB7gHH89jQum~|k(QrCnS229ks8VX diff --git a/dev/apple-touch-icon-152x152.png b/dev/apple-touch-icon-152x152.png index 7ef6174165afa3622149994a72fcac127210a57d..83ea47bf565014d0a7d538438f16bab4b4d57023 100644 GIT binary patch delta 62 zcmccPb;oN$HM^jMgj37!h>cB}DuU)#MkYX{ZD3$!VDLHCTyF9n6$Mn$CWih+li#Z3 F0|0zs6OjM_ delta 62 zcmccPb;oN$HM@Ye!hC(7gBzPPRRqnfOpL9JjkFC6tPBjgZ*Z|r-lL*`D*CH+)6U6n GRq_FNSQKvn diff --git a/dev/apple-touch-icon-180x180.png b/dev/apple-touch-icon-180x180.png index 79055796fa578ce7afe105575bbfd507545196a4..97891e8cdcba6e915259a0064e3a2ea1bc483be4 100644 GIT binary patch delta 62 zcmcZ=c`I^4HM^jM)S9kYB^#TTYYUoN8JSoanQ0psSQ!|k98xo%Y^9@sDk?gEUiai| GoqPb3FcWnE delta 62 zcmcZ=c`I^4HM@Ye;tP$M@QqE&wFS+rOpL9JjkOI7tPBiv*E4RMY^9@sDjM@?C-3BJ GoqPa@DHCe| diff --git a/dev/apple-touch-icon-60x60.png b/dev/apple-touch-icon-60x60.png index 5dad85c86ee8e4ae0cde20a679378b14879f4091..f5c62c6279f6a9c4e1e26988ae4f2b81f39cbc05 100644 GIT binary patch delta 62 zcmbO)Jzsi4HM^jMsEuj+(~V6zJc8y{MkZE9hS~-ORt5$OQzdpz{?DU;Dtf_U0qbM~ G-h2Q`vJxTy delta 62 zcmbO)Jzsi4HM@Ye>~VL73mcnqcm&O?OpL9JEVT^`tPBiXOXCtJ|L0La6*bX#c6YJ? GZ$1D?CK6!) diff --git a/dev/apple-touch-icon-76x76.png b/dev/apple-touch-icon-76x76.png index 8cb12abadde5ca0a97b428437919643b615ccb2d..d4aa56d9b0af331d596792c8002ac181d9e1da0c 100644 GIT binary patch delta 62 zcmZ3jv|4FGHM^jM*ixHo@f(|d@C%w-8JSoa8EG3BSQ!{h=w(uw+%2GhD*Eukt{Ic} H2;>6*X_pi9 delta 62 zcmZ3jv|4FGHM@YeT%2EE*2bnE{DNjyCdO9A2HFM&Rt5$#?$SDwy9E?bMRTPVPnf(% GARhoQ;}LrR diff --git a/dev/apple-touch-icon.png b/dev/apple-touch-icon.png index 19ffce438746efe82c21003d4d6ada4629e1211c..610f7d0a8d2c116aab93f81e1d8328e5a10de47e 100644 GIT binary patch delta 62 zcmcZ=c`I^4HM^jM^zGhNk2W?f*A_IlGBU9;GS@aRure?>v{koxvXzbks_5nyQ|%{b H>*NCf&3qMJ delta 62 zcmcZ=c`I^4HM@YeQlX;m+l@`jwFS+rOpL9JO|%URtPBiZaM;^Vw$f2R6`dK{-aI*5 GCm#TK$rAej diff --git a/dev/articles/customize-pins-metadata.html b/dev/articles/customize-pins-metadata.html index 9063cd81..56af5377 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 '20240108T164405Z-9d061'
+#> Creating new version '20240108T172501Z-c5c22'
 #> 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] "l" "j" "c" "h" "o" "u" "q" "w" "k" "y"
+#> [1] "d" "j" "p" "t" "m" "o" "e" "h" "k" "x"

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] l j c h o u q w k y +#> [1] d j p t m o e h k x #> 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 5e2393d9..0e6180af 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 '20240108T164408Z-0128c'

+#> Creating new version '20240108T172503Z-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 '20240108T164408Z-0128c'
+#> Creating new version '20240108T172504Z-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 4b8a98e4..0ad4a663 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 '20240108T164412Z-0a03e' +#> Creating new version '20240108T172507Z-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/RtmpiwX0A0/file20f05f7fc1bc/alphabet/file20f03a5d168d"

+#> [1] "/tmp/RtmpR1NRHC/file2001bde27ec/alphabet/file200159c29086"

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 '20240108T164413Z-ee580'
+#> Creating new version '20240108T172509Z-ee580'
 board %>% pin_download("alphabet")
-#> [1] "~/.local/share/pins/alphabet/20240108T164413Z-ee580/file20f03a5d168d"
+#> [1] "~/.local/share/pins/alphabet/20240108T172509Z-ee580/file200159c29086"

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/RtmpiwX0A0/file20f05f7fc1bc/first/first.txt"

+#> [1] "/tmp/RtmpR1NRHC/file2001bde27ec/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 '20240108T164414Z-d376d' +#> Creating new version '20240108T172509Z-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 1fd43c59..ca3b8fb6 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 '20240108T164416Z-7c7a6' +#> Creating new version '20240108T172511Z-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 @@ -168,7 +168,7 @@

Reading and writing data#> 10 19.2 6 168. 123 3.92 3.44 18.3 1 0 4 4 #> # ℹ 22 more rows

You don’t need to supply the file type when reading data from a pin -because pins automatically stores the file type in the metadata.

+because pins automatically stores the file type in the metadata.

+#> ..$ version: chr "20240108T172511Z-7c7a6"

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