Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: The app argument of drive_auth_configure() is deprecated as of googledrive 2.1.0. #57

Closed
ihecker opened this issue Mar 22, 2023 · 2 comments

Comments

@ihecker
Copy link

ihecker commented Mar 22, 2023

Hi,

I just got the following error when trying to install trackdown from GitHub :

* installing *source* package 'trackdown' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Warning: The `app` argument of `drive_auth_configure()` is deprecated as of googledrive
2.1.0.
ℹ Please use the `client` argument instead.
ℹ The deprecated feature was likely used in the trackdown package.
  Please report the issue at
  <https://github.com/claudiozandonella/trackdown/issues>.
Error: package or namespace load failed for 'trackdown':
 .onLoad failed in loadNamespace() for 'trackdown', details:
  call: drive_auth_configure(client = app, path = path, api_key = api_key)
  error: missing(client) || is.null(client) || inherits(client, "gargle_oauth_client") is not TRUE
Error: loading failed
Execution halted
ERROR: loading failed

Thank you for your work!

@ClaudioZandonella
Copy link
Owner

Hi @ihecker,

thanks for pointing out this issue! The new googledrive update 2.1.0 changed something in the authentication configure. I will investigate this issue.

Quick hack: installing googledrive version 2.0.0 should allow you to install trackdown. I know it is not ideal, but I will update to fix the issue

ClaudioZandonella added a commit that referenced this issue May 28, 2023
- Fix compatibility with `googledrive` version `2.1.0`. `googledrive` and `gargle` packages changed underlying functions and arguments for managing Google api authentication. Now `trackdown` is aligned with the changes. See Issue #57 #59 #62.
- Add lifecycle badges. See Issue #52.
- Fix unwanted removed lines at download. See Issue #61
@ClaudioZandonella
Copy link
Owner

Hi @ihecker

I just released version 1.5.1 that fixed compatibility with the new version of googledrive🎉.

googledirve and gargle (the two packages that manage the communication with Google APIs) changed their underlying functions and arguments. In particular, what was named before app now is client. It is still an ongoing transformation as most functions allow deprecated arguments.

Be sure to install the new version of googledirve and gargle, they are required by trackdown (I already specified it in the Imports section so everything should be automatic).

Now everything should be fixed! I close the issue.

But if there are still problems with the installation, do not hesitate to reopen the issue!😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants