diff --git a/README.Rmd b/README.Rmd index 575539be9..084df88c9 100644 --- a/README.Rmd +++ b/README.Rmd @@ -19,9 +19,6 @@ googlesheets4::sheets_deauth() [![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental) [![CRAN status](https://www.r-pkg.org/badges/version/googlesheets4)](https://CRAN.R-project.org/package=googlesheets4) -[![Travis build status](https://travis-ci.org/tidyverse/googlesheets4.svg?branch=master)](https://travis-ci.org/tidyverse/googlesheets4) -[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/tidyverse/googlesheets4?branch=master&svg=true)](https://ci.appveyor.com/project/tidyverse/googlesheets4) -[![Coverage status](https://codecov.io/gh/tidyverse/googlesheets4/branch/master/graph/badge.svg)](https://codecov.io/github/tidyverse/googlesheets4?branch=master) googlesheets4 provides an R interface to [Google Sheets](https://spreadsheets.google.com/) via the [Sheets API v4](https://developers.google.com/sheets/api/). It is a reboot of the existing [googlesheets package](https://cran.r-project.org/package=googlesheets). diff --git a/README.md b/README.md index 6b53528bf..fdc0eaab3 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,6 @@ [![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental) [![CRAN status](https://www.r-pkg.org/badges/version/googlesheets4)](https://CRAN.R-project.org/package=googlesheets4) -[![Travis build -status](https://travis-ci.org/tidyverse/googlesheets4.svg?branch=master)](https://travis-ci.org/tidyverse/googlesheets4) -[![AppVeyor build -status](https://ci.appveyor.com/api/projects/status/github/tidyverse/googlesheets4?branch=master&svg=true)](https://ci.appveyor.com/project/tidyverse/googlesheets4) -[![Coverage -status](https://codecov.io/gh/tidyverse/googlesheets4/branch/master/graph/badge.svg)](https://codecov.io/github/tidyverse/googlesheets4?branch=master) googlesheets4 provides an R interface to [Google @@ -79,13 +73,13 @@ sheets_example("chicken-sheet") %>% #> Reading from 'chicken-sheet' #> #> # A tibble: 5 x 4 -#> chicken breed sex motto -#> -#> 1 Foghorn Leghorn Leghorn roost… That's a joke, ah say, that's a jo… -#> 2 Chicken Little unknown hen The sky is falling! -#> 3 Ginger Rhode Islan… hen Listen. We'll either die free chic… -#> 4 Camilla the Chic… Chantecler hen Bawk, buck, ba-gawk. -#> 5 Ernie The Giant … Brahma roost… Put Captain Solo in the cargo hold. +#> chicken breed sex motto +#> +#> 1 Foghorn Leghorn Leghorn roost… That's a joke, ah say, that's a joke,… +#> 2 Chicken Little unknown hen The sky is falling! +#> 3 Ginger Rhode Island… hen Listen. We'll either die free chicken… +#> 4 Camilla the Chick… Chantecler hen Bawk, buck, ba-gawk. +#> 5 Ernie The Giant C… Brahma roost… Put Captain Solo in the cargo hold. ``` Read specific cells, from a specific sheet, using an A1-style notation: @@ -96,19 +90,18 @@ sheets_example("deaths") %>% #> Reading from 'deaths' #> Range "'arts'!A5:F15" #> # A tibble: 10 x 6 -#> Name Profession Age `Has kids` `Date of birth` -#> -#> 1 Davi… musician 69 TRUE 1947-01-08 00:00:00 -#> 2 Carr… actor 60 TRUE 1956-10-21 00:00:00 -#> 3 Chuc… musician 90 TRUE 1926-10-18 00:00:00 -#> 4 Bill… actor 61 TRUE 1955-05-17 00:00:00 -#> 5 Prin… musician 57 TRUE 1958-06-07 00:00:00 -#> 6 Alan… actor 69 FALSE 1946-02-21 00:00:00 -#> 7 Flor… actor 82 TRUE 1934-02-14 00:00:00 -#> 8 Harp… author 89 FALSE 1926-04-28 00:00:00 -#> 9 Zsa … actor 99 TRUE 1917-02-06 00:00:00 -#> 10 Geor… musician 53 FALSE 1963-06-25 00:00:00 -#> # … with 1 more variable: `Date of death` +#> Name Profession Age `Has kids` `Date of birth` `Date of death` +#> +#> 1 David Bo… musician 69 TRUE 1947-01-08 00:00:00 2016-01-10 00:00:00 +#> 2 Carrie F… actor 60 TRUE 1956-10-21 00:00:00 2016-12-27 00:00:00 +#> 3 Chuck Be… musician 90 TRUE 1926-10-18 00:00:00 2017-03-18 00:00:00 +#> 4 Bill Pax… actor 61 TRUE 1955-05-17 00:00:00 2017-02-25 00:00:00 +#> 5 Prince musician 57 TRUE 1958-06-07 00:00:00 2016-04-21 00:00:00 +#> 6 Alan Ric… actor 69 FALSE 1946-02-21 00:00:00 2016-01-14 00:00:00 +#> 7 Florence… actor 82 TRUE 1934-02-14 00:00:00 2016-11-24 00:00:00 +#> 8 Harper L… author 89 FALSE 1926-04-28 00:00:00 2016-02-19 00:00:00 +#> 9 Zsa Zsa … actor 99 TRUE 1917-02-06 00:00:00 2016-12-18 00:00:00 +#> 10 George M… musician 53 FALSE 1963-06-25 00:00:00 2016-12-25 00:00:00 ``` Read from a named range or region and specify (some of the ) column @@ -120,18 +113,18 @@ sheets_example("deaths") %>% #> Reading from 'deaths' #> Range "arts_data" #> # A tibble: 10 x 6 -#> Name Profession Age `Has kids` `Date of birth` `Date of death` -#> -#> 1 David Bowie musician 69 TRUE 1947-01-08 2016-01-10 -#> 2 Carrie Fish… actor 60 TRUE 1956-10-21 2016-12-27 -#> 3 Chuck Berry musician 90 TRUE 1926-10-18 2017-03-18 -#> 4 Bill Paxton actor 61 TRUE 1955-05-17 2017-02-25 -#> 5 Prince musician 57 TRUE 1958-06-07 2016-04-21 -#> 6 Alan Rickman actor 69 FALSE 1946-02-21 2016-01-14 -#> 7 Florence He… actor 82 TRUE 1934-02-14 2016-11-24 -#> 8 Harper Lee author 89 FALSE 1926-04-28 2016-02-19 -#> 9 Zsa Zsa Gáb… actor 99 TRUE 1917-02-06 2016-12-18 -#> 10 George Mich… musician 53 FALSE 1963-06-25 2016-12-25 +#> Name Profession Age `Has kids` `Date of birth` `Date of death` +#> +#> 1 David Bowie musician 69 TRUE 1947-01-08 2016-01-10 +#> 2 Carrie Fisher actor 60 TRUE 1956-10-21 2016-12-27 +#> 3 Chuck Berry musician 90 TRUE 1926-10-18 2017-03-18 +#> 4 Bill Paxton actor 61 TRUE 1955-05-17 2017-02-25 +#> 5 Prince musician 57 TRUE 1958-06-07 2016-04-21 +#> 6 Alan Rickman actor 69 FALSE 1946-02-21 2016-01-14 +#> 7 Florence Henders… actor 82 TRUE 1934-02-14 2016-11-24 +#> 8 Harper Lee author 89 FALSE 1926-04-28 2016-02-19 +#> 9 Zsa Zsa Gábor actor 99 TRUE 1917-02-06 2016-12-18 +#> 10 George Michael musician 53 FALSE 1963-06-25 2016-12-25 ``` There are various ways to specify the target Sheet. The simplest, but @@ -144,13 +137,13 @@ read_sheet(url) #> Reading from 'chicken-sheet' #> #> # A tibble: 5 x 4 -#> chicken breed sex motto -#> -#> 1 Foghorn Leghorn Leghorn roost… That's a joke, ah say, that's a jo… -#> 2 Chicken Little unknown hen The sky is falling! -#> 3 Ginger Rhode Islan… hen Listen. We'll either die free chic… -#> 4 Camilla the Chic… Chantecler hen Bawk, buck, ba-gawk. -#> 5 Ernie The Giant … Brahma roost… Put Captain Solo in the cargo hold. +#> chicken breed sex motto +#> +#> 1 Foghorn Leghorn Leghorn roost… That's a joke, ah say, that's a joke,… +#> 2 Chicken Little unknown hen The sky is falling! +#> 3 Ginger Rhode Island… hen Listen. We'll either die free chicken… +#> 4 Camilla the Chick… Chantecler hen Bawk, buck, ba-gawk. +#> 5 Ernie The Giant C… Brahma roost… Put Captain Solo in the cargo hold. ``` For more information, see the package website: