diff --git a/dev/articles/example-sheets.html b/dev/articles/example-sheets.html index eb9dadd50..dce340528 100644 --- a/dev/articles/example-sheets.html +++ b/dev/articles/example-sheets.html @@ -101,8 +101,6 @@ world-readable, so we do gs4_deauth().

 library(googlesheets4)
-#> Error in get(paste0(generic, ".", class), envir = get_method_env()) : 
-#>   object 'type_sum.accel' not found
 
 gs4_deauth()
diff --git a/dev/articles/find-identify-sheets.html b/dev/articles/find-identify-sheets.html index 5af12379c..e79efa344 100644 --- a/dev/articles/find-identify-sheets.html +++ b/dev/articles/find-identify-sheets.html @@ -104,9 +104,7 @@

Attach googlesheets4

-library(googlesheets4)
-#> Error in get(paste0(generic, ".", class), envir = get_method_env()) : 
-#>   object 'type_sum.accel' not found
+library(googlesheets4)

Auth diff --git a/dev/articles/fun-with-googledrive-and-readxl.html b/dev/articles/fun-with-googledrive-and-readxl.html index b671b5ab4..fbaae49dc 100644 --- a/dev/articles/fun-with-googledrive-and-readxl.html +++ b/dev/articles/fun-with-googledrive-and-readxl.html @@ -105,8 +105,6 @@

Attach packages
 library(googlesheets4)
-#> Error in get(paste0(generic, ".", class), envir = get_method_env()) : 
-#>   object 'type_sum.accel' not found
 library(googledrive)
 #> 
 #> Attaching package: 'googledrive'
@@ -132,29 +130,29 @@ 

Create a private She

Put the iris data into a csv file.

 (iris_tempfile <- tempfile(pattern = "iris-", fileext = ".csv"))
-#> [1] "/tmp/RtmpVyw7BG/iris-22457a06110d.csv"
+#> [1] "/tmp/RtmpwQ9Zeb/iris-224dc0deec.csv"
 write.csv(iris, iris_tempfile, row.names = FALSE)

Use googledrive::drive_upload() to upload the csv and simultaneously convert to a Sheet.

 (iris_ss <- drive_upload(iris_tempfile, type = "spreadsheet"))
 #> Local file:
-#> • /tmp/RtmpVyw7BG/iris-22457a06110d.csv
+#> • /tmp/RtmpwQ9Zeb/iris-224dc0deec.csv
 #> Uploaded into Drive file:
-#> • iris-22457a06110d <id: 1U4OD779UHssHKQSKUq1_aDHERYRQSuGBRpfh4SMwbT4>
+#> • iris-224dc0deec <id: 1BB4z6VE4XeGtbx4O7HeEgULP5eZ6BjLL2Y41zkyie04>
 #> With MIME type:
 #> • application/vnd.google-apps.spreadsheet
 #> # A dribble: 1 × 3
-#>   name              id       drive_resource   
-#>   <chr>             <drv_id> <list>           
-#> 1 iris-22457a06110d 1U4OD77… <named list [35]>
+#>   name            id       drive_resource   
+#>   <chr>           <drv_id> <list>           
+#> 1 iris-224dc0deec 1BB4z6V… <named list [35]>
 
 # visit the new Sheet in the browser, in an interactive session!
 drive_browse(iris_ss)

Read data from the private Sheet into R.

 read_sheet(iris_ss, range = "B1:D6")
-#>  Reading from iris-22457a06110d.
+#>  Reading from iris-224dc0deec.csv.
 #>  Range B1:D6.
 #> # A tibble: 5 × 3
 #>   Sepal.Width Petal.Length Petal.Width
@@ -171,12 +169,12 @@ 

Create a local xlsx

Download the Sheet as an Excel workbook.

 (iris_xlsxfile <- sub("[.]csv", ".xlsx", iris_tempfile))
-#> [1] "/tmp/RtmpVyw7BG/iris-22457a06110d.xlsx"
+#> [1] "/tmp/RtmpwQ9Zeb/iris-224dc0deec.xlsx"
 drive_download(iris_ss, path = iris_xlsxfile, overwrite = TRUE)
 #> File downloaded:
-#> • iris-22457a06110d <id: 1U4OD779UHssHKQSKUq1_aDHERYRQSuGBRpfh4SMwbT4>
+#> • iris-224dc0deec <id: 1BB4z6VE4XeGtbx4O7HeEgULP5eZ6BjLL2Y41zkyie04>
 #> Saved locally as:
-#> • /tmp/RtmpVyw7BG/iris-22457a06110d.xlsx
+#> • /tmp/RtmpwQ9Zeb/iris-224dc0deec.xlsx

Read xlsx with readxl @@ -209,7 +207,7 @@

Clean up#> [1] TRUE TRUE drive_trash(iris_ss) #> File trashed: -#> • iris-22457a06110d <id: 1U4OD779UHssHKQSKUq1_aDHERYRQSuGBRpfh4SMwbT4>

+#> • iris-224dc0deec <id: 1BB4z6VE4XeGtbx4O7HeEgULP5eZ6BjLL2Y41zkyie04>

diff --git a/dev/articles/function-class-names.html b/dev/articles/function-class-names.html index 57954ac8c..1ea7ec0c5 100644 --- a/dev/articles/function-class-names.html +++ b/dev/articles/function-class-names.html @@ -184,8 +184,6 @@

Previous use of sheets_ pre

Auth and the Sheet API v4 surface

-
#> Error in get(paste0(generic, ".", class), envir = get_method_env()) : 
-#>   object 'type_sum.accel' not found
diff --git a/dev/articles/googlesheets4.html b/dev/articles/googlesheets4.html index 90d238262..74b6ff5a5 100644 --- a/dev/articles/googlesheets4.html +++ b/dev/articles/googlesheets4.html @@ -274,7 +274,7 @@

Writing Sheets#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: unfearing-guineafowl -#> ID: 1WU17zuJGWHNW1msTPZU1zFuUzv5_-KXSMCwXdeIoMrk +#> ID: 1yxfNEkkjC2zwDHRVRTsDQhVmj6rfDi3B32pHC3vm1lw #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -290,7 +290,7 @@

Writing Sheets
 googledrive::drive_trash(ss)
 #> File trashed:
-#> • unfearing-guineafowl <id: 1WU17zuJGWHNW1msTPZU1zFuUzv5_-KXSMCwXdeIoMrk>
+#> • unfearing-guineafowl <id: 1yxfNEkkjC2zwDHRVRTsDQhVmj6rfDi3B32pHC3vm1lw>
 
 ss <- gs4_create("testy-hedgehog", sheets = df)
 #>  Creating new Sheet: testy-hedgehog.
@@ -298,7 +298,7 @@ 

Writing Sheets#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: testy-hedgehog -#> ID: 1hhdB7fWV2iGVI34-UTtJfidrbml-E8H27siA65JP9Rc +#> ID: 1EyGxFedgQApyfQDkpiPM7ArKe6SAWWTvkmFVKx7mblw #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -317,7 +317,7 @@

Writing Sheets#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: testy-hedgehog -#> ID: 1hhdB7fWV2iGVI34-UTtJfidrbml-E8H27siA65JP9Rc +#> ID: 1EyGxFedgQApyfQDkpiPM7ArKe6SAWWTvkmFVKx7mblw #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 2 @@ -378,12 +378,12 @@

Writing Sheets#> # A tibble: 2 × 8 #> name index id type visible grid_rows grid_columns data #> <chr> <int> <int> <chr> <lgl> <int> <int> <list> -#> 1 df 0 1187518437 GRID TRUE 9 2 <NULL> -#> 2 chickwts 1 1423468928 GRID TRUE 72 2 <NULL> +#> 1 df 0 746906714 GRID TRUE 9 2 <NULL> +#> 2 chickwts 1 2057941441 GRID TRUE 72 2 <NULL> googledrive::drive_trash(ss) #> File trashed: -#> • testy-hedgehog <id: 1hhdB7fWV2iGVI34-UTtJfidrbml-E8H27siA65JP9Rc>

+#> • testy-hedgehog <id: 1EyGxFedgQApyfQDkpiPM7ArKe6SAWWTvkmFVKx7mblw>

The article Write Sheets has even more detail.

diff --git a/dev/articles/messages-and-errors.html b/dev/articles/messages-and-errors.html index c5664210c..05c973373 100644 --- a/dev/articles/messages-and-errors.html +++ b/dev/articles/messages-and-errors.html @@ -98,9 +98,7 @@
-library(googlesheets4)
-#> Error in get(paste0(generic, ".", class), envir = get_method_env()) : 
-#>   object 'type_sum.accel' not found
+library(googlesheets4)

In a hidden chunk here, I “export” the internal helpers covered below.

diff --git a/dev/articles/range-specification.html b/dev/articles/range-specification.html index 78b79265c..44cc5502f 100644 --- a/dev/articles/range-specification.html +++ b/dev/articles/range-specification.html @@ -102,8 +102,6 @@ googlesheets4.

 library(tidyverse)
-#> Error in get(paste0(generic, ".", class), envir = get_method_env()) : 
-#>   object 'type_sum.accel' not found
 library(googlesheets4)
 
 gs4_deauth()
diff --git a/dev/articles/read-sheets.html b/dev/articles/read-sheets.html index c93865770..06ad6863c 100644 --- a/dev/articles/read-sheets.html +++ b/dev/articles/read-sheets.html @@ -101,9 +101,7 @@
-library(googlesheets4)
-#> Error in get(paste0(generic, ".", class), envir = get_method_env()) : 
-#>   object 'type_sum.accel' not found
+library(googlesheets4)

Basic Sheet reading is shown in the Get started article. Here we show how to target a specific (work)sheet or cell range, how to deal with column types, and how to get detailed @@ -428,14 +426,14 @@

When speed matters#> Use `spec()` to retrieve the full column specification for this data. #> Specify the column types or set `show_col_types = FALSE` to quiet this message. #> user system elapsed -#> 0.077 0.016 1.025 +#> 0.081 0.012 0.482 system.time( gs4_example("gapminder") %>% range_read(sheet = "Africa") ) #> Reading from gapminder. #> Range ''Africa''. #> user system elapsed -#> 0.282 0.016 0.667 +#> 0.290 0.013 0.570

The modest difference above shows that the speed difference is unlikely to be a gamechanger in many settings.

Summary of how to think about range_speedread() vs diff --git a/dev/articles/write-sheets.html b/dev/articles/write-sheets.html index 2b7b40248..74203e890 100644 --- a/dev/articles/write-sheets.html +++ b/dev/articles/write-sheets.html @@ -101,9 +101,7 @@

-library(googlesheets4)
-#> Error in get(paste0(generic, ".", class), envir = get_method_env()) : 
-#>   object 'type_sum.accel' not found
+library(googlesheets4)

Basic Sheet writing is shown in the Get started article. Here we explore the different uses for the writing functions:

@@ -177,7 +175,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-create-demo-1 -#> ID: 1zsGXaQrqpAOmuMAuc-HkVOJD2gBAOrinFA7HPtgZd5o +#> ID: 1L3rS6tqRT_pp4qeJ1hZlXfferXGJCKTXHj7PYj8nlfY #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -204,7 +202,7 @@

Send sheet names#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-create-demo-2 -#> ID: 1hy08VUO89odgRS_VtznYNCvlF8MR34GTOolMb7bsHsk +#> ID: 1NrJH6KA6ulSYYHLFM02BOYBcfix0kSS9kd6hKNRAFs0 #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 2 @@ -235,7 +233,7 @@

Send a data frame#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-create-demo-3 -#> ID: 1gS_U7k4nBczeTkfjLKQqYMEf-Hj0xzqyyvuNszOaNs4 +#> ID: 16fD-AY--FyheQfmsfoDNlcixa4fdjWhoeNkZDJlvvcs #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -263,7 +261,7 @@

Send multiple data frames#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-create-demo-4 -#> ID: 1jzMDVeAHafxErYVOCceFz61MqDGYrwDC2R3qnImZanA +#> ID: 1-T-r9jz-3ZEHx9Ul-3K4zLqXDIJclK0ntuH6fUvwvVM #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 2 @@ -293,7 +291,7 @@

Write metadata#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-create-demo-5 -#> ID: 1Vr5TcfKAQQOBiJB7-hyqZ8XzrcrF4K0ufjUc_dxxwBw +#> ID: 13Y6TgPcAGv_zlUVQ4EZW4j_StwKQn4CcENNWEeCzX7I #> Locale: fr_FR #> Time zone: Europe/Paris #> # of sheets: 1 @@ -318,11 +316,11 @@

Clean upgs4_find("sheets-create-demo") %>% googledrive::drive_trash() #> Files trashed: -#> • sheets-create-demo-5 <id: 1Vr5TcfKAQQOBiJB7-hyqZ8XzrcrF4K0ufjUc_dxxwBw> -#> • sheets-create-demo-4 <id: 1jzMDVeAHafxErYVOCceFz61MqDGYrwDC2R3qnImZanA> -#> • sheets-create-demo-3 <id: 1gS_U7k4nBczeTkfjLKQqYMEf-Hj0xzqyyvuNszOaNs4> -#> • sheets-create-demo-2 <id: 1hy08VUO89odgRS_VtznYNCvlF8MR34GTOolMb7bsHsk> -#> • sheets-create-demo-1 <id: 1zsGXaQrqpAOmuMAuc-HkVOJD2gBAOrinFA7HPtgZd5o> +#> • sheets-create-demo-5 <id: 13Y6TgPcAGv_zlUVQ4EZW4j_StwKQn4CcENNWEeCzX7I> +#> • sheets-create-demo-4 <id: 1-T-r9jz-3ZEHx9Ul-3K4zLqXDIJclK0ntuH6fUvwvVM> +#> • sheets-create-demo-3 <id: 16fD-AY--FyheQfmsfoDNlcixa4fdjWhoeNkZDJlvvcs> +#> • sheets-create-demo-2 <id: 1NrJH6KA6ulSYYHLFM02BOYBcfix0kSS9kd6hKNRAFs0> +#> • sheets-create-demo-1 <id: 1L3rS6tqRT_pp4qeJ1hZlXfferXGJCKTXHj7PYj8nlfY>
@@ -345,7 +343,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: unfearing-guineafowl -#> ID: 10Zch5hR7dIrBnZcB0j-LYeeXEQRfmmDfm2LP-QrKLTk +#> ID: 12J_EmV-506pI1ZwEeKjKVPmIwA47FfoWsdsFyWJSg80 #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -365,7 +363,7 @@

 googledrive::drive_trash(random_ss)
 #> File trashed:
-#> • unfearing-guineafowl <id: 10Zch5hR7dIrBnZcB0j-LYeeXEQRfmmDfm2LP-QrKLTk>
+#> • unfearing-guineafowl <id: 12J_EmV-506pI1ZwEeKjKVPmIwA47FfoWsdsFyWJSg80>
 
 ss1 <- gs4_create(
   "write-sheets-demo-1",
@@ -376,7 +374,7 @@ 

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: write-sheets-demo-1 -#> ID: 1K9CMLNR0tg76nsdfW4jDkSa2YXr4UJ1At4kDF_sLK0E +#> ID: 1ef9ZCILekfG-nWsGFwZfu496oRV7nifQ2YI7adlH0pI #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -394,7 +392,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: write-sheets-demo-1 -#> ID: 1K9CMLNR0tg76nsdfW4jDkSa2YXr4UJ1At4kDF_sLK0E +#> ID: 1ef9ZCILekfG-nWsGFwZfu496oRV7nifQ2YI7adlH0pI #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -426,7 +424,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: write-sheets-demo-1 -#> ID: 1K9CMLNR0tg76nsdfW4jDkSa2YXr4UJ1At4kDF_sLK0E +#> ID: 1ef9ZCILekfG-nWsGFwZfu496oRV7nifQ2YI7adlH0pI #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 4 @@ -444,7 +442,7 @@

Clean upgs4_find("write-sheets-demo") %>% googledrive::drive_trash() #> File trashed: -#> • write-sheets-demo-1 <id: 1K9CMLNR0tg76nsdfW4jDkSa2YXr4UJ1At4kDF_sLK0E>

+#> • write-sheets-demo-1 <id: 1ef9ZCILekfG-nWsGFwZfu496oRV7nifQ2YI7adlH0pI>

@@ -490,7 +488,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-append-demo -#> ID: 1bfe85IO9OvpoTHZLjQ6wxF5-ZjEBTRuLKGK95nV6MZY +#> ID: 1rFcGBsiSrrirzG64L4Ud5ClURG4aRgZcwvy34mcb4UA #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -511,7 +509,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-append-demo -#> ID: 1bfe85IO9OvpoTHZLjQ6wxF5-ZjEBTRuLKGK95nV6MZY +#> ID: 1rFcGBsiSrrirzG64L4Ud5ClURG4aRgZcwvy34mcb4UA #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -528,7 +526,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-append-demo -#> ID: 1bfe85IO9OvpoTHZLjQ6wxF5-ZjEBTRuLKGK95nV6MZY +#> ID: 1rFcGBsiSrrirzG64L4Ud5ClURG4aRgZcwvy34mcb4UA #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -545,7 +543,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-append-demo -#> ID: 1bfe85IO9OvpoTHZLjQ6wxF5-ZjEBTRuLKGK95nV6MZY +#> ID: 1rFcGBsiSrrirzG64L4Ud5ClURG4aRgZcwvy34mcb4UA #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -562,7 +560,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-append-demo -#> ID: 1bfe85IO9OvpoTHZLjQ6wxF5-ZjEBTRuLKGK95nV6MZY +#> ID: 1rFcGBsiSrrirzG64L4Ud5ClURG4aRgZcwvy34mcb4UA #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -587,7 +585,7 @@

Clean upgs4_find("sheets-append-demo") %>% googledrive::drive_trash() #> File trashed: -#> • sheets-append-demo <id: 1bfe85IO9OvpoTHZLjQ6wxF5-ZjEBTRuLKGK95nV6MZY>

+#> • sheets-append-demo <id: 1rFcGBsiSrrirzG64L4Ud5ClURG4aRgZcwvy34mcb4UA>
@@ -769,7 +767,7 @@

Clean upgs4_find("sheets-edit-demo") %>% googledrive::drive_trash() #> File trashed: -#> • sheets-edit-demo <id: 1uxmt-QExuZzulQk_5EdFcRs1aYkSby5Pr0BB4h_Qn8M>

+#> • sheets-edit-demo <id: 1bPCEhgJtyq99IbhsTdYIuysUDjRkl4MbdN1266d8xEE> +#> • sheets-formula-demo <id: 1d25mTHy6gmavIMXiXk16DwuXRsYVL6ffvjy82xSkEAQ>
@@ -845,7 +843,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: range-flood-demo -#> ID: 1gPIbUy6CbMlZdQ_wLGtIYBnYAGuJTdraY05Pnrjz-Ao +#> ID: 1YMLJAxjLEygCXB4xCvmoltwFcsh5fagRn8bH7LxzMwk #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -933,7 +931,7 @@

Clean upgs4_find("range-flood-demo") %>% googledrive::drive_trash() #> File trashed: -#> • range-flood-demo <id: 1gPIbUy6CbMlZdQ_wLGtIYBnYAGuJTdraY05Pnrjz-Ao>

+#> • range-flood-demo <id: 1YMLJAxjLEygCXB4xCvmoltwFcsh5fagRn8bH7LxzMwk>
@@ -955,7 +953,7 @@

#> #> ── <googlesheets4_spreadsheet> ─────────────────────────────────────────── #> Spreadsheet name: sheets-delete-demo -#> ID: 18uin3zpjjZeusxL4EXOl8eVgCCsLnYgiLtBI4qvtrcs +#> ID: 1neuPgviDEoDuImn0TwFZ4UjzubHfCukBqPjxwDrIpUo #> Locale: en_US #> Time zone: Etc/GMT #> # of sheets: 1 @@ -1028,7 +1026,7 @@

Clean upgs4_find("sheets-delete-demo") %>% googledrive::drive_trash() #> File trashed: -#> • sheets-delete-demo <id: 18uin3zpjjZeusxL4EXOl8eVgCCsLnYgiLtBI4qvtrcs>

+#> • sheets-delete-demo <id: 1neuPgviDEoDuImn0TwFZ4UjzubHfCukBqPjxwDrIpUo>

<= v0.1.1.9000