Error in readRDS(x) : error reading from connection

Hi, I have a home work on collecting data from Twitter. I use the package twitteR to collect tweets and there is no problem. Now I have to get friends and followers of a user. For that, I don't find a function in twitteR so I use the package rtweet. That is where I have the following error when I run the code:
'Error in readRDS(x) : error reading from connection'. Does anyone knows what is the problem?
Thank you very much.
F_M

The rtweet uses a different but similar auoth code than twitteR. You have to make a single "token" with your keys and call out the specific name of your API app.
please see: