Getting error while publishing application on rstudio connect. Package not installed, please resolve before continuing.

Inside Deploy Window :

Preparing to deploy application...DONE
Uploading bundle for application: 78...Warning in FUN(X[[i]], ...) :
Unable to find repository URL for package foreign
Error:

  • Application depends on package "V8" but it is not installed. Please
    resolve before continuing.
  • Application depends on package "crul" but it is not installed.
    Please resolve before continuing.
  • Application depends on package "geojson" but it is not installed.
    Please resolve before continuing.
  • Application depends on package "geojsonio" but it is not installed.
    Please resolve before continuing.
  • Application depends on package "httpcode" but it is not installed.
    Please resolve before continuing.
  • Application depends on package "jqr" but it is not installed. Please
    resolve before continuing.
  • Application depends on package "maptools" but it is not installed.
    Please resolve before continuing.
  • Application depends on package "protolite" but it is not installed.
    Please resolve before continuing.
  • Application depends on package "rgeos" but it is not installed.
    Please resolve before continuing.
  • Application depends on package "triebeard"
    In addition: There were 29 warnings (use warnings() to see them)
    Execution halted

packages being used in the app :

library(shiny)
library(data.table)
library(shinyjs)
library(shinydashboard)
library(shinycssloaders)
library(shinythemes)
library(shinyWidgets)
library(tools)
library(stringr)
library(stringi)
library(DT)
library(shinyalert)
library(plotly)
library(rhandsontable)
library(lubridate)
library(shinyBS)
library(rlist)
library(GGally)
library(FinCal)
library(shinytoastr)
library(apexcharter)
library(combinat)
library(rjson)
library(fasttime)
library(leaflet)
require(visNetwork)
library(scales)
library(shinybusy)
library(sf)

Any guidance on how to resolve this would be a great help!
Thanks

Interesting!! Thanks for reaching out here @Pranav_Arora

This sounds like a problem on your local computer - you do not have the V8, crul, geojson, etc. packages installed locally, so the rsconnect package (which is doing the publishing) and its dependency packrat cannot find the information necessary to tell Connect how to rebuild your environment.

Your issue should be resolved if you go through and install.packages(c("V8","crul","geojson",...)) for all of the packages in your list there. Please give that a try and let us know if you run into any more issues getting this app published!!

Also there are some other common publishing pitfalls articulated here:

1 Like

Hi Cole, Thanks this worked!

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.