-
Notifications
You must be signed in to change notification settings - Fork 47
/
README.Rmd
77 lines (54 loc) · 2.28 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
auth_success <- tryCatch(
googledrive:::drive_auth_docs(),
googledrive_auth_internal_error = function(e) e
)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
error = TRUE,
purl = googledrive::drive_has_token(),
eval = googledrive::drive_has_token()
)
```
```{r eval = !googledrive::drive_has_token(), echo = FALSE, comment = NA}
googledrive:::drive_bullets(c(
"Code chunks will not be evaluated, because:",
strsplit(auth_success$message, split = "\n")[[1]]
))
googledrive::drive_deauth()
```
# googledrive <a href="https://googledrive.tidyverse.org"><img src="man/figures/logo.png" align="right" height="138" /></a>
<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/googledrive)](https://CRAN.R-project.org/package=googledrive)
[![R-CMD-check](https://github.com/tidyverse/googledrive/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidyverse/googledrive/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/tidyverse/googledrive/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidyverse/googledrive?branch=main)
<!-- badges: end -->
## Overview
googledrive allows you to interact with files on Google Drive from R.
## Installation
Install the CRAN version:
```{r, eval = FALSE}
install.packages("googledrive")
```
Or install the development version from GitHub:
```{r, eval = FALSE}
# install.packages("pak")
pak::pak("tidyverse/googledrive")
```
## Usage
Please see the package website: <https://googledrive.tidyverse.org>
Here's a teaser that uses googledrive to view some of the files you see on <https://drive.google.com> (up to `n_max = 25`, in this case):
```{r}
library("googledrive")
drive_find(n_max = 25)
```
## Contributing
If you'd like to contribute to the development of googledrive, please read [these guidelines](https://googledrive.tidyverse.org/CONTRIBUTING.html).
Please note that the googledrive project is released with a [Contributor Code of Conduct](https://googledrive.tidyverse.org/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.
## Privacy
[Privacy policy](https://www.tidyverse.org/google_privacy_policy)