From 0c9a0686ec23c361e7c7ea22846dea07a7b506c6 Mon Sep 17 00:00:00 2001 From: juliasilge Date: Fri, 8 Sep 2023 20:16:18 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20rstudio/?= =?UTF-8?q?pins-r@bb49622afae1df4c11497f61b3ee08faf2dc7c6d=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 | 2 +- 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 +- 31 files changed, 98 insertions(+), 98 deletions(-) diff --git a/dev/apple-touch-icon-120x120.png b/dev/apple-touch-icon-120x120.png index 0dbdb4377b6f052aad94920343ad8b8e98e96784..1fea1f449c4a43a8c234eb484a1ce01343b7efb9 100644 GIT binary patch delta 93 zcmext`Pp(p6$gh1KkMT+8ZS0B?Ui=52r)9SGBmX^Fx56Nure^zm7AZEnO4bQWME{hYhbBsfUcodqEBdYi%dQMa6%hC delta 93 zcmext`Pp(p6$h)ZfL4*y)$)x^d!=1XLkumg49%=ejI<35tPBi76fbOMU|>)!ag8WR jNi0dV%FR#7OsixtGB7gMHL%n*K-ZvJlfgf^MJ68rU?&?j diff --git a/dev/apple-touch-icon-152x152.png b/dev/apple-touch-icon-152x152.png index a853dc1948046acf6ebb4a479e8184408cbc2af7..009bbf290d993fac90040033478be6ba280decf6 100644 GIT binary patch delta 69 zcmccPb;oN$6$gh1KU>w)%Ak!+YAPZYAw~vPhNe~qX4(b@Rt5&PYjun#?@^J(kns61 KrGN5Um3#o{LKRQ| delta 69 zcmccPb;oN$6$h)ZfHte^(}x?I)Ko-FLkumg49%=ejI|96tPBi3h23VKyhlYAL!y~G KdH3YED)|5cv=x*9 diff --git a/dev/apple-touch-icon-180x180.png b/dev/apple-touch-icon-180x180.png index 440410510fece1d8558434b286c06a05e3e56e83..4784664b1dc3bc38fcd29f0d7b0021fafcbb38e5 100644 GIT binary patch delta 69 zcmcZ=c`I^46$gh1KgZnIkkE}yOSDBSLW~To3{9;JEVK;_tPBitCxz!tw$hQskdQh5 K{?g=ZoqPcALlr^* delta 69 zcmcZ=c`I^46$h)ZfX-~i0;i2lOSDByLkumg49%=eOtcLQtPBjyKR)f8Y^5WMA>p6^(0y!im?!W8%b diff --git a/dev/apple-touch-icon-76x76.png b/dev/apple-touch-icon-76x76.png index d40c66ff31a93f2209d2905fcbeb2a205f5ae5a5..c4874a4394e4d01b353516b24b9da60f3684d351 100644 GIT binary patch delta 69 zcmZ3jv|4FG6$gh1Kg*QY5_KD!zVeG$gcuoE8Jb!dm}naqSQ!|sGP0GL+$|uBA#ppu Kb=l-S0{H;ZUKFzc delta 69 zcmZ3jv|4FG6$h)ZfW{o3EzujBzVeHhh8S8}8Jby{7-$<9SQ!``-gj`;SQ!|cej0OYvXzc3hQzKN LPtqo5>*NCfL0=a? delta 69 zcmcZ=c`I^46$h)ZfbJVLhbtSKmS~HZh8S8}8Jby{m}(msSQ!{hYA 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 '20230905T191726Z-d3c26'
+#> Creating new version '20230908T201545Z-c5601'
 #> 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" "l" "h" "m" "c" "v" "d" "b" "x" "p"
+#> [1] "q" "t" "v" "h" "k" "w" "a" "o" "u" "p"

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 l h m c v d b x p +#> [1] q t v h k w a o u p #> 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 8f44e176..e55127c7 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 '20230905T191730Z-be312'

+#> Creating new version '20230908T201548Z-be312'

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 '20230905T191730Z-be312'
+#> Creating new version '20230908T201548Z-be312'

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 fbce4b38..fbc5e9c5 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 '20230905T191735Z-8df40' +#> Creating new version '20230908T201553Z-8df40' #> 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/Rtmp6ZdTOF/file20a46cefb637/alphabet/file20a437fabd74"

+#> [1] "/tmp/Rtmpbaiudn/file207952fe884/alphabet/file20797f81ffde"

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 '20230905T191737Z-ee580'
+#> Creating new version '20230908T201554Z-ee580'
 board %>% pin_download("alphabet")
-#> [1] "~/.local/share/pins/alphabet/20230905T191737Z-ee580/file20a437fabd74"
+#> [1] "~/.local/share/pins/alphabet/20230908T201554Z-ee580/file20797f81ffde"

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/Rtmp6ZdTOF/file20a46cefb637/first/first.txt"

+#> [1] "/tmp/Rtmpbaiudn/file207952fe884/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 '20230905T191738Z-59306' +#> Creating new version '20230908T201555Z-59306' #> Writing to pin 'test-data' board %>% pin_read("test-data") #> x diff --git a/dev/articles/pins.html b/dev/articles/pins.html index fbc62b03..265e7b2e 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 '20230905T191741Z-66c17' +#> Creating new version '20230908T201557Z-66c17' #> 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 @@ -225,14 +225,14 @@

Metadata#> $ title : chr "mtcars: a pinned 32 x 11 data frame" #> $ description: NULL #> $ tags : NULL -#> $ created : POSIXct[1:1], format: "2023-09-05 19:17:41" +#> $ created : POSIXct[1:1], format: "2023-09-08 20:15:57" #> $ api_version: int 1 #> $ user : list() #> $ name : chr "mtcars" #> $ local :List of 3 -#> ..$ dir : 'fs_path' chr "/tmp/RtmpdAcHun/pins-20ed45b7a07a/mtcars/20230905T191741Z-66c17" +#> ..$ dir : 'fs_path' chr "/tmp/RtmpAY1xlh/pins-20c3715fcc03/mtcars/20230908T201557Z-66c17" #> ..$ url : NULL -#> ..$ version: chr "20230905T191741Z-66c17" +#> ..$ version: chr "20230908T201557Z-66c17"

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

pins 1.2.1

CRAN release: 2023-08-16

diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index a93d7618..a68a329c 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -8,7 +8,7 @@ articles: pins: pins.html posit-connect: posit-connect.html using-board-url: using-board-url.html -last_built: 2023-09-05T19:16Z +last_built: 2023-09-08T20:15Z urls: reference: https://pins.rstudio.com/reference article: https://pins.rstudio.com/articles diff --git a/dev/reference/board_register.html b/dev/reference/board_register.html index e67a1596..66c7d565 100644 --- a/dev/reference/board_register.html +++ b/dev/reference/board_register.html @@ -147,7 +147,7 @@

Examplesboard %>% pin_write(mtcars) #> Using `name = 'mtcars'` #> Guessing `type = 'rds'` -#> Creating new version '20230905T191706Z-64844' +#> Creating new version '20230908T201527Z-64844' #> Writing to pin 'mtcars' board %>% pin_read("mtcars") #> mpg cyl disp hp drat wt qsec vs am gear carb diff --git a/dev/reference/legacy_local.html b/dev/reference/legacy_local.html index fce4b1fb..cd5e07db 100644 --- a/dev/reference/legacy_local.html +++ b/dev/reference/legacy_local.html @@ -142,7 +142,7 @@

Examplesboard <- board_local() board %>% pin_write(data.frame(x = 1:3), "test") #> Guessing `type = 'rds'` -#> Creating new version '20230905T191711Z-59306' +#> Creating new version '20230908T201532Z-59306' #> Writing to pin 'test' board %>% pin_read("test") #> x diff --git a/dev/reference/pin.html b/dev/reference/pin.html index d3d47888..15e6f2a2 100644 --- a/dev/reference/pin.html +++ b/dev/reference/pin.html @@ -163,7 +163,7 @@

Examplesboard %>% pin_write(mtcars) #> Using `name = 'mtcars'` #> Guessing `type = 'rds'` -#> Creating new version '20230905T191712Z-64844' +#> Creating new version '20230908T201533Z-64844' #> Writing to pin 'mtcars' board %>% pin_read("mtcars") #> mpg cyl disp hp drat wt qsec vs am gear carb diff --git a/dev/reference/pin_browse.html b/dev/reference/pin_browse.html index 9c5cd9da..da99bef1 100644 --- a/dev/reference/pin_browse.html +++ b/dev/reference/pin_browse.html @@ -110,19 +110,19 @@

Examples
board <- board_temp(versioned = TRUE)
 board %>% pin_write(1:10, "x")
 #> Guessing `type = 'rds'`
-#> Creating new version '20230905T191713Z-1d13c'
+#> Creating new version '20230908T201533Z-1d13c'
 #> Writing to pin 'x'
 board %>% pin_write(1:11, "x")
 #> Guessing `type = 'rds'`
-#> Creating new version '20230905T191713Z-661c8'
+#> Creating new version '20230908T201533Z-661c8'
 #> Writing to pin 'x'
 board %>% pin_write(1:12, "x")
 #> Guessing `type = 'rds'`
-#> Creating new version '20230905T191713Z-c9eb6'
+#> Creating new version '20230908T201534Z-c9eb6'
 #> Writing to pin 'x'
 
 board %>% pin_browse("x", local = TRUE)
-#>  Pin at </tmp/Rtmpy2ZjRD/pins-18987f9959dd/x/20230905T191713Z-c9eb6>
+#>  Pin at </tmp/RtmplkLbox/pins-187462ea93a7/x/20230908T201534Z-c9eb6>