Failed to deployApp: there is no package called ‘rsconnect’

Hello everyone,

My app was working fine for a couple of days, and for the last day or so when I try to deploy the app it fails and returns the below.

Error in loadNamespace(name) : there is no package called ‘rsconnect’
Calls: :: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted

I reinstalled R, all packages but the same problem.

Any ideas?

Thank you in advance.
George

> deployApp()
Preparing to deploy application...
Update application currently deployed at
https://XXXXXXXX.shinyapps.io/XXXXXXX/? [Y/n] y
DONE
Uploading bundle for application: 1063320...DONE
Deploying bundle: 2284175 for application: 1063320 ...
Waiting for task: 635156558
  building: Building image: 2419529
  building: Installing system dependencies
  building: Fetching packages
  building: Building package: fastmap
################################ Begin Task Log ################################ 
[2019-08-01T18:29:57.712877824+0000] Execute script: packages/build/sys.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libapparmor-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  libapparmor-dev
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 67.8 kB of archives.
After this operation, 229 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor-dev amd64 2.10.95-0ubuntu2.11 [67.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 67.8 kB in 0s (0 B/s)
Selecting previously unselected package libapparmor-dev:amd64.
(Reading database ... 119718 files and directories currently installed.)
Preparing to unpack .../libapparmor-dev_2.10.95-0ubuntu2.11_amd64.deb ...
Unpacking libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
[2019-08-01T18:30:29.789217786+0000] Installing R package: viridisLite (0.3.0)
Error in loadNamespace(name) : there is no package called ‘rsconnect’
Calls: :: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 635156561 failed: Error building image: Error building fastmap (1.0.0). Build exited with non-zero status: 1

Hi,

Can you run the app locally without issues?

My first guess would be there is some issue with the sting you used in defining the package name in library(rsconnect) or library("rsconnect"). Are you using any quotes? If so, make sure you erase them or replace them with the basic quotes on your keyboard. Better so, type the whole line again. Sometimes if you copy paste code from a website or other document the quotes or characters in the string are slightly different which could lead to interpretation errors when compiled.

If this is not helping, please provide the code you're using and some more details on the system and R version.

Thanks
PJ

I'm also having this problem. I get the following message when using the deploy button in Rstudio for windows:

Error in loadNamespace(x) : there is no package called 'rsconnect'
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted

I'm able to run the application locally and am able to deploy the application using rsconnect::deployApp() function.

This seems to be something related to the RStudio application itself? Currently running 2022.07.2 Build 576.

I am running all this on a virtual machine, which has caused trouble for me in the past, but as I mentioned I'm able to run the whole thing locally and publish via the command console.

Any ideas? Thanks.