Error in access to googlesheet via R

I installed package "google sheets", and

library("googlesheets")
gs_auth(new_user = TRUE)

Once choose a google account with tidyverse-googlesheets,
I found this error

What should I do ?

googlesheets has been deprecated (because of the API version), you have to use the newer googlesheets4

Thanks for the suggestion!

I installed "googlesheets4"
and then library("googlesheet4")

gs_auth(new_user = TRUE)
And then select the google account, but show the same error above!

my purpose is to export the table or any data to googlesheet by using R !
Is there any way ? I'm a very new user for R.
Thanks alot !!

It's called gs4_auth in googlesheets4