rstudio / rstudio

RStudio is an integrated development environment (IDE) for R
https://posit.co/products/open-source/rstudio/
Other
4.62k stars 1.09k forks source link

RStudio does not detect orphaned accounts from rsconnect >= 0.8.25 #10119

Open jmcphers opened 2 years ago

jmcphers commented 2 years ago

System details

RStudio Edition : Both
RStudio Version : 2021.09.0+351 

Steps to reproduce the problem

  1. Install the rsconnect package, 0.8.25 or newer
  2. Use it to establish one or more accounts on Connect
  3. Uninstall the package
  4. Shut down all RStudio instances
  5. Open RStudio and go to Options -> Publishing

Describe the problem in detail

No publishing accounts are shown.

Describe the behavior you expected

RStudio should detect that you have accounts even though the rsconnect package is not installed. It should show a notice that it's detected orphaned accounts and prompt you to install the rsconnect package so you can see them.

This is necessitated by a recent change in the rsconnect package; due to new CRAN policy, it now has to store the accounts in a different folder: https://github.com/rstudio/rsconnect/pull/551

You can pick up the thread here to see where the IDE is looking for orphaned accounts:

https://github.com/rstudio/rstudio/blob/3a7302098babba3827d4f98aad2cb12c5e711977/src/cpp/session/modules/SessionRSConnect.R#L527-L529

mikebessuille commented 2 years ago

@jmcphers is there a reason you feel this is critical enough to be in PT? It's a regression, but it only happens if you uninstall the package.

jmcphers commented 2 years ago

Only because it's a regression.