From 20f4a1b7fb4c34e2948c00895e4b3973e1759a38 Mon Sep 17 00:00:00 2001 From: john li Date: Thu, 23 May 2024 13:29:13 -0400 Subject: [PATCH 1/2] update request_make documentation ea0ca46 switched to using gargle::request_retry but didn't update the documentation --- R/request_make.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/request_make.R b/R/request_make.R index 5bd04b371..8c5f7244f 100644 --- a/R/request_make.R +++ b/R/request_make.R @@ -5,7 +5,7 @@ #' wrappers that facilitate common tasks, such as uploading or downloading Drive #' files. The functions here are intended for internal use and for programming #' around the Drive API. Three functions are documented here: -#' * `request_make()` does the bare minimum: calls [gargle::request_make()], +#' * `request_make()` does the bare minimum: calls [gargle::request_retry()], #' only adding the googledrive user agent. Typically the input is created #' with [request_generate()] and the output is processed with #' [gargle::response_process()]. From c0d27122221826b9e08097a3ee50258bfa8efcd4 Mon Sep 17 00:00:00 2001 From: jennybc Date: Sat, 6 Sep 2025 00:34:03 +0000 Subject: [PATCH 2/2] Document --- man/as_dribble.Rd | 2 +- man/dribble-checks.Rd | 2 +- man/drive_about.Rd | 2 +- man/drive_auth.Rd | 4 ++-- man/drive_browse.Rd | 2 +- man/drive_cp.Rd | 2 +- man/drive_create.Rd | 2 +- man/drive_deauth.Rd | 4 ++-- man/drive_download.Rd | 2 +- man/drive_examples.Rd | 2 +- man/drive_get.Rd | 2 +- man/drive_id.Rd | 2 +- man/drive_link.Rd | 2 +- man/drive_mkdir.Rd | 2 +- man/drive_mv.Rd | 2 +- man/drive_publish.Rd | 2 +- man/drive_put.Rd | 2 +- man/drive_read_string.Rd | 2 +- man/drive_rename.Rd | 2 +- man/drive_reveal.Rd | 2 +- man/drive_rm.Rd | 2 +- man/drive_scopes.Rd | 2 +- man/drive_share.Rd | 2 +- man/drive_token.Rd | 2 +- man/drive_trash.Rd | 2 +- man/drive_update.Rd | 2 +- man/drive_upload.Rd | 2 +- man/drive_user.Rd | 2 +- man/googledrive-configuration.Rd | 2 +- man/request_generate.Rd | 2 +- man/request_make.Rd | 4 ++-- man/shortcut_create.Rd | 2 +- man/shortcut_resolve.Rd | 2 +- 33 files changed, 36 insertions(+), 36 deletions(-) diff --git a/man/as_dribble.Rd b/man/as_dribble.Rd index ee9aa128b..039d7961b 100644 --- a/man/as_dribble.Rd +++ b/man/as_dribble.Rd @@ -42,7 +42,7 @@ named \code{c} in \verb{a/b/} or a file with default name in \verb{a/b/c/}? You error and must make your intent clear. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # create some files for us to re-discover by name or filepath alfa <- drive_create("alfa", type = "folder") bravo <- drive_create("bravo", path = alfa) diff --git a/man/dribble-checks.Rd b/man/dribble-checks.Rd index 3374fa6d7..0a77d62bc 100644 --- a/man/dribble-checks.Rd +++ b/man/dribble-checks.Rd @@ -60,7 +60,7 @@ represents, such as: } } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} ## most of us have multiple files or folders on Google Drive d <- drive_find() is_dribble(d) diff --git a/man/drive_about.Rd b/man/drive_about.Rd index bb1d35168..446e16dda 100644 --- a/man/drive_about.Rd +++ b/man/drive_about.Rd @@ -16,7 +16,7 @@ This function mostly exists to power \code{\link[=drive_user]{drive_user()}}, wh useful information (the information on current user) and prints it nicely. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} drive_about() # explore the export formats available for Drive files, by MIME type diff --git a/man/drive_auth.Rd b/man/drive_auth.Rd index 197d5cdbf..955443d25 100644 --- a/man/drive_auth.Rd +++ b/man/drive_auth.Rd @@ -115,7 +115,7 @@ However, when necessary, \code{drive_auth()} allows the user to explicitly: \item Bring your own \code{token}. \item Customize \code{scopes}. \item Use a non-default \code{cache} folder or turn caching off. -\item Explicitly request out-of-bound (OOB) auth via \code{use_oob}. +\item Explicitly request out-of-band (OOB) auth via \code{use_oob}. } If you are interacting with R within a browser (applies to RStudio @@ -144,7 +144,7 @@ For details on the many ways to find a token, see To learn more about gargle options, see \link[gargle:gargle_options]{gargle::gargle_options}. } \examples{ -\dontshow{if (rlang::is_interactive()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (rlang::is_interactive()) withAutoprint(\{ # examplesIf} # load/refresh existing credentials, if available # otherwise, go to browser for authentication and authorization drive_auth() diff --git a/man/drive_browse.Rd b/man/drive_browse.Rd index 68dc38359..e242cc161 100644 --- a/man/drive_browse.Rd +++ b/man/drive_browse.Rd @@ -18,7 +18,7 @@ Character vector of file hyperlinks, from \code{\link[=drive_link]{drive_link()} Visits a file on Google Drive in your default browser. } \examples{ -\dontshow{if (drive_has_token() && rlang::is_interactive()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token() && rlang::is_interactive()) withAutoprint(\{ # examplesIf} drive_find(n_max = 1) \%>\% drive_browse() \dontshow{\}) # examplesIf} } diff --git a/man/drive_cp.Rd b/man/drive_cp.Rd index 382a565f3..d618b4e85 100644 --- a/man/drive_cp.Rd +++ b/man/drive_cp.Rd @@ -72,7 +72,7 @@ An object of class \code{\link{dribble}}, a tibble with one row per file. Copies an existing Drive file into a new file id. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Target one of the official example files (src_file <- drive_example_remote("chicken.txt")) diff --git a/man/drive_create.Rd b/man/drive_create.Rd index 8fd58823c..ee67eb7ee 100644 --- a/man/drive_create.Rd +++ b/man/drive_create.Rd @@ -71,7 +71,7 @@ special cases: } } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Create a blank Google Doc named 'WordStar' in # your 'My Drive' root folder and star it wordstar <- drive_create("WordStar", type = "document", starred = TRUE) diff --git a/man/drive_deauth.Rd b/man/drive_deauth.Rd index 9a6ed79a7..bd0dcfb68 100644 --- a/man/drive_deauth.Rd +++ b/man/drive_deauth.Rd @@ -18,7 +18,7 @@ via \code{\link[=drive_auth_configure]{drive_auth_configure()}} and retrieve tha In the absence of a user-configured key, a built-in default key is used. } \examples{ -\dontshow{if (rlang::is_interactive()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (rlang::is_interactive()) withAutoprint(\{ # examplesIf} drive_deauth() drive_user() @@ -31,8 +31,8 @@ drive_download(public_file) } \seealso{ Other auth functions: -\code{\link{drive_auth_configure}()}, \code{\link{drive_auth}()}, +\code{\link{drive_auth_configure}()}, \code{\link{drive_scopes}()} } \concept{auth functions} diff --git a/man/drive_download.Rd b/man/drive_download.Rd index 28a8edd5d..a64de6e7b 100644 --- a/man/drive_download.Rd +++ b/man/drive_download.Rd @@ -54,7 +54,7 @@ or the result of \code{drive_about()$exportFormats}. The returned dribble includes a \code{local_path} column. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Target one of the official example files (src_file <- drive_example_remote("chicken_sheet")) diff --git a/man/drive_examples.Rd b/man/drive_examples.Rd index 9e157ff07..80bb5132b 100644 --- a/man/drive_examples.Rd +++ b/man/drive_examples.Rd @@ -42,7 +42,7 @@ drive_examples_local() \%>\% basename() drive_examples_local("chicken") \%>\% basename() drive_example_local("imdb") -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} drive_examples_remote() drive_examples_remote("chicken") drive_example_remote("chicken_doc") diff --git a/man/drive_get.Rd b/man/drive_get.Rd index 24108a714..5a4326822 100644 --- a/man/drive_get.Rd +++ b/man/drive_get.Rd @@ -90,7 +90,7 @@ search other collections of items. Read more about \link[=shared_drives]{shared } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # get info about your "My Drive" root folder drive_get("~/") # the API reserves the file id "root" for your root folder diff --git a/man/drive_id.Rd b/man/drive_id.Rd index 8f7393fe3..6c9a417e0 100644 --- a/man/drive_id.Rd +++ b/man/drive_id.Rd @@ -24,7 +24,7 @@ inputs into an instance of \code{drive_id}. \code{as_id()} is a generic function. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} as_id("123abc") as_id("https://docs.google.com/spreadsheets/d/qawsedrf16273849/edit#gid=12345") diff --git a/man/drive_link.Rd b/man/drive_link.Rd index c6eb042db..656edff07 100644 --- a/man/drive_link.Rd +++ b/man/drive_link.Rd @@ -19,7 +19,7 @@ Returns the \code{"webViewLink"} for one or more files, which is the "link for opening the file in a relevant Google editor or viewer in a browser". } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # get a few files into a dribble three_files <- drive_find(n_max = 3) diff --git a/man/drive_mkdir.Rd b/man/drive_mkdir.Rd index 9cca44b4f..25f183612 100644 --- a/man/drive_mkdir.Rd +++ b/man/drive_mkdir.Rd @@ -54,7 +54,7 @@ Creates a new Drive folder. To update the metadata of an existing Drive file, including a folder, use \code{\link[=drive_update]{drive_update()}}. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Create folder named 'ghi', then another below named it 'jkl' and star it ghi <- drive_mkdir("ghi") jkl <- drive_mkdir("ghi/jkl", starred = TRUE) diff --git a/man/drive_mv.Rd b/man/drive_mv.Rd index 06c854f94..8635ce3cb 100644 --- a/man/drive_mv.Rd +++ b/man/drive_mv.Rd @@ -65,7 +65,7 @@ An object of class \code{\link{dribble}}, a tibble with one row per file. Move a Drive file to a different folder, give it a different name, or both. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # create a file to move file <- drive_example_remote("chicken.txt") \%>\% drive_cp("chicken-mv.txt") diff --git a/man/drive_publish.Rd b/man/drive_publish.Rd index f1c7ee876..e214c7a0c 100644 --- a/man/drive_publish.Rd +++ b/man/drive_publish.Rd @@ -38,7 +38,7 @@ include Google Docs, Google Sheets, and Google Slides. The returned Read more in \code{\link[=drive_reveal]{drive_reveal()}}. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Create a file to publish file <- drive_example_remote("chicken_sheet") \%>\% drive_cp() diff --git a/man/drive_put.Rd b/man/drive_put.Rd index abc3f5dbe..2b29f6bc1 100644 --- a/man/drive_put.Rd +++ b/man/drive_put.Rd @@ -77,7 +77,7 @@ if (no hits) \{ }\if{html}{\out{}} } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # create a local file to work with local_file <- tempfile("drive_put_", fileext = ".txt") writeLines(c("beginning", "middle"), local_file) diff --git a/man/drive_read_string.Rd b/man/drive_read_string.Rd index 678ec7e82..c3e1f6e39 100644 --- a/man/drive_read_string.Rd +++ b/man/drive_read_string.Rd @@ -42,7 +42,7 @@ Sheets or Docs, must be exported as a conventional MIME type. See the help for \code{\link[=drive_download]{drive_download()}} for more. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # comma-separated values --> data.frame or tibble (chicken_csv <- drive_example_remote("chicken.csv")) chicken_csv \%>\% diff --git a/man/drive_rename.Rd b/man/drive_rename.Rd index fe51e4ead..83952916b 100644 --- a/man/drive_rename.Rd +++ b/man/drive_rename.Rd @@ -46,7 +46,7 @@ This is a wrapper for \code{\link[=drive_mv]{drive_mv()}} that only renames a fi If you would like to rename AND move the file, see \code{\link[=drive_mv]{drive_mv()}}. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Create a file to rename file <- drive_create("file-to-rename") diff --git a/man/drive_reveal.Rd b/man/drive_reveal.Rd index e556fd16f..13c218c7b 100644 --- a/man/drive_reveal.Rd +++ b/man/drive_reveal.Rd @@ -112,7 +112,7 @@ If you really want the raw \code{parents} property, call \code{drive_reveal(what } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Get a few of your files files <- drive_find(n_max = 10, trashed = NA) diff --git a/man/drive_rm.Rd b/man/drive_rm.Rd index d2ee66591..eb11e78bb 100644 --- a/man/drive_rm.Rd +++ b/man/drive_rm.Rd @@ -27,7 +27,7 @@ Caution: this will permanently delete your files! For a safer, reversible option, see \code{\link[=drive_trash]{drive_trash()}}. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Target one of the official example files to copy (then remove) (src_file <- drive_example_remote("chicken.txt")) diff --git a/man/drive_scopes.Rd b/man/drive_scopes.Rd index 679559152..c2db11e18 100644 --- a/man/drive_scopes.Rd +++ b/man/drive_scopes.Rd @@ -45,8 +45,8 @@ drive_scopes() the permissions for each scope. Other auth functions: -\code{\link{drive_auth_configure}()}, \code{\link{drive_auth}()}, +\code{\link{drive_auth_configure}()}, \code{\link{drive_deauth}()} } \concept{auth functions} diff --git a/man/drive_share.Rd b/man/drive_share.Rd index 7ba2ea8df..954c1ec14 100644 --- a/man/drive_share.Rd +++ b/man/drive_share.Rd @@ -64,7 +64,7 @@ read, comment, or edit. The returned \code{\link{dribble}} will have extra colum "make this \code{file} readable by 'anyone with a link'". } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Create a file to share file <- drive_example_remote("chicken_doc") \%>\% drive_cp(name = "chicken-share.txt") diff --git a/man/drive_token.Rd b/man/drive_token.Rd index e184e9f2b..bd59b786d 100644 --- a/man/drive_token.Rd +++ b/man/drive_token.Rd @@ -20,7 +20,7 @@ If auth has been deactivated via \code{\link[=drive_deauth]{drive_deauth()}}, \c returns \code{NULL}. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} req <- request_generate( "drive.files.get", list(fileId = "abc"), diff --git a/man/drive_trash.Rd b/man/drive_trash.Rd index da7021fd3..7d2ce5326 100644 --- a/man/drive_trash.Rd +++ b/man/drive_trash.Rd @@ -28,7 +28,7 @@ An object of class \code{\link{dribble}}, a tibble with one row per file. Move Drive files to or from trash } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Create a file and put it in the trash. file <- drive_example_remote("chicken.txt") \%>\% drive_cp("chicken-trash.txt") diff --git a/man/drive_update.Rd b/man/drive_update.Rd index 6e6de8caa..dafedb865 100644 --- a/man/drive_update.Rd +++ b/man/drive_update.Rd @@ -34,7 +34,7 @@ API-speak), new metadata, or both. To create a new file or update existing, depending on whether the Drive file already exists, see \code{\link[=drive_put]{drive_put()}}. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Create a new file, so we can update it x <- drive_example_remote("chicken.csv") \%>\% drive_cp() diff --git a/man/drive_upload.Rd b/man/drive_upload.Rd index 45c3bd0dd..77976dd87 100644 --- a/man/drive_upload.Rd +++ b/man/drive_upload.Rd @@ -80,7 +80,7 @@ of an existing Drive file, use \code{\link[=drive_update]{drive_update()}}. To u depending on whether the Drive file already exists, see \code{\link[=drive_put]{drive_put()}}. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # upload a csv file chicken_csv <- drive_example_local("chicken.csv") \%>\% drive_upload("chicken-upload.csv") diff --git a/man/drive_user.Rd b/man/drive_user.Rd index f9395d282..5bef0a593 100644 --- a/man/drive_user.Rd +++ b/man/drive_user.Rd @@ -23,7 +23,7 @@ a thin wrapper around \code{\link[=drive_about]{drive_about()}} that just extrac information (the information on current user) and prints it nicely. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} drive_user() # more info is returned than is printed diff --git a/man/googledrive-configuration.Rd b/man/googledrive-configuration.Rd index b5e79e2bc..28ca33aa6 100644 --- a/man/googledrive-configuration.Rd +++ b/man/googledrive-configuration.Rd @@ -69,7 +69,7 @@ the withr package (\url{https://withr.r-lib.org}). } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # message: "Created Drive file" (x <- drive_create("drive-quiet-demo", type = "document")) diff --git a/man/request_generate.Rd b/man/request_generate.Rd index 2fa7e162b..d02ca1191 100644 --- a/man/request_generate.Rd +++ b/man/request_generate.Rd @@ -55,7 +55,7 @@ and URL endpoint substitution (which is also enacted). } } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} req <- request_generate( "drive.files.get", list(fileId = "abc"), diff --git a/man/request_make.Rd b/man/request_make.Rd index f8fbad4a7..8a8b0b0da 100644 --- a/man/request_make.Rd +++ b/man/request_make.Rd @@ -42,7 +42,7 @@ more limited way, use the helpers \code{\link[=local_drive_quiet]{local_drive_qu \code{\link[=with_drive_quiet]{with_drive_quiet()}}.} } \value{ -\code{request_make()}: Object of class \code{response} from \link{httr}. +\code{request_make()}: Object of class \code{response} from \link[httr:httr-package]{httr::httr}. \code{do_request()}: List representing the content returned by a single request. @@ -57,7 +57,7 @@ wrappers that facilitate common tasks, such as uploading or downloading Drive files. The functions here are intended for internal use and for programming around the Drive API. Three functions are documented here: \itemize{ -\item \code{request_make()} does the bare minimum: calls \code{\link[gargle:request_make]{gargle::request_make()}}, +\item \code{request_make()} does the bare minimum: calls \code{\link[gargle:request_retry]{gargle::request_retry()}}, only adding the googledrive user agent. Typically the input is created with \code{\link[=request_generate]{request_generate()}} and the output is processed with \code{\link[gargle:response_process]{gargle::response_process()}}. diff --git a/man/shortcut_create.Rd b/man/shortcut_create.Rd index 8d953cc61..fe0c08aff 100644 --- a/man/shortcut_create.Rd +++ b/man/shortcut_create.Rd @@ -54,7 +54,7 @@ relatively new feature in Drive; they were introduced when Drive stopped allowing a file to have more than 1 parent folder. } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Target one of the official example files (src_file <- drive_example_remote("chicken_sheet")) diff --git a/man/shortcut_resolve.Rd b/man/shortcut_resolve.Rd index 162293cb5..21b2af88f 100644 --- a/man/shortcut_resolve.Rd +++ b/man/shortcut_resolve.Rd @@ -36,7 +36,7 @@ specific error. } } \examples{ -\dontshow{if (drive_has_token()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (drive_has_token()) withAutoprint(\{ # examplesIf} # Create a file to make a shortcut to file <- drive_example_remote("chicken_sheet") \%>\% drive_cp(name = "chicken-sheet-for-shortcut")