r-lib / gmailr

Access the Gmail RESTful API from R.
https://gmailr.r-lib.org
Other
229 stars 56 forks source link

Error with gm_auth_configure pulling from gargle package #199

Closed Thomas-Hagan closed 3 months ago

Thomas-Hagan commented 3 months ago

Recently I have received this error when trying to run this function through terminal

Error: 'gargle_oauth_client_from_json' is not an exported object from 'namespace:gargle'

Admittedly it may be a dependency issue, but I have tried to fix this several times to no avail. Any help would be greatly appreciated.

jennybc commented 3 months ago

The first thing I'd do is make sure you have the most current release of gargle installed from CRAN.

Thomas-Hagan commented 3 months ago

Both gargle and gmailr are up to date.

jennybc commented 3 months ago

Can you show me exact code and output? Please include calls to packageVersion("gargle") and packageVersion("gmailr").

All I can say is gargle_oauth_client_from_json() is exported from gargle v1.5.2.

packageVersion("gargle")
#> [1] '1.5.2'
library(gargle)
exists("gargle_oauth_client_from_json", where = "package:gargle")
#> [1] TRUE

Created on 2024-05-13 with reprex v2.1.0.9000

Thomas-Hagan commented 3 months ago

Hi Jenny,

Apologies, this has resolved, no cause for alarm