From 6a5c6635803b3730d6f56c1f98d5430a2e92e9eb Mon Sep 17 00:00:00 2001 From: Sander Devisscher Date: Tue, 17 Dec 2024 11:58:46 +0100 Subject: [PATCH] add additional troubleshooting --- R/download_gdrive_if_missing.R | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/R/download_gdrive_if_missing.R b/R/download_gdrive_if_missing.R index 5a0ec18..657a487 100644 --- a/R/download_gdrive_if_missing.R +++ b/R/download_gdrive_if_missing.R @@ -20,10 +20,14 @@ #' #' When a *PERMISSION_DENIED* error occurs, it is likely that the file is not shared #' with the email address provided. This can be fixed by sharing the file with the -#' email address. If the file was shared correctly this might indicate that email address +#' email address. +#' If the file was shared correctly this might indicate that email address #' does not have the correct permissions to access the file. This can be fixed by -#' running `googledrive::drive_auth()` and making sure the -#' 'show, modify and delete all drive files' option is selected. If the error persists +#' running `googledrive::drive_deauth()` followed by `googledrive::drive_auth()` and +#' making sure the 'show, modify and delete all drive files' option is selected. +#' Additionally running `options(gargle_oauth_cache = ".secrets")` prior to running +#' the function can fix this issue. +#' If the error yet persists #' please create a [new issue](https://github.com/inbo/fistools/issues/new/choose) #' on the github page. #'