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. #' diff --git a/man/download_gdrive_if_missing.Rd b/man/download_gdrive_if_missing.Rd index b341ef2..cec862d 100644 --- a/man/download_gdrive_if_missing.Rd +++ b/man/download_gdrive_if_missing.Rd @@ -33,10 +33,14 @@ more robust encryption methods. When a \emph{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 \code{googledrive::drive_auth()} and making sure the -'show, modify and delete all drive files' option is selected. If the error persists +running \code{googledrive::drive_deauth()} followed by \code{googledrive::drive_auth()} and +making sure the 'show, modify and delete all drive files' option is selected. +Additionally running \code{options(gargle_oauth_cache = ".secrets")} prior to running +the function can fix this issue. +If the error yet persists please create a \href{https://github.com/inbo/fistools/issues/new/choose}{new issue} on the github page. } diff --git a/man/qd_pci2.Rd b/man/qd_pci2.Rd index 4ad470f..9ace572 100644 --- a/man/qd_pci2.Rd +++ b/man/qd_pci2.Rd @@ -48,7 +48,7 @@ qd_pci2(Zv, scale_values = -2:2, x_is_table = FALSE, m = 2, p = 1) # 0 } } \seealso{ -Other plotting: +Other plotting: \code{\link{qd_pci1}()}, \code{\link{qd_pci2_D}()} }