I cannot connect to shinyapps.io Publishing Account in R Studio. I see an error.

I am not able to connect to my Publishing account on R studio.

  1. I go to the path Tools-> Global Options -> Publishing -> Connect
  2. I choose ShinyApps.io and I paste the command that I copied from shinyapps.io dashboard (command from STEP 2 – AUTHORIZE ACCOUNT)
  3. I click on Connect Account but I get the error seen in the screenshot below.
  4. I tried connecting from R Studio Console using rsconnect::setAccountInfo(name, token, secret) and I got the error,

"Error in rbind(info, getNamespaceInfo(env, "S3methods")) :
number of columns of matrices must match (see arg 2)
"

I tried connecting by disabling Firewall. It did not work.

I have tried looking online for troubleshooting steps but I could not understand what the actual issue is.
Can you please help me?

I am using R studio Version 1.3.959 and R version 3.5.2


RDeploy