Problem Deploying on Shinyapps.io plot.new has not been called yet

Hi all,

Relatively new to Shiny, but have deployed a couple of apps before this, with no problem. I've been using relative filepaths, which is the only answer I've been able to find on the forums. Here is my log info:

2022-08-12T01:47:51.286980+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287031+00:00 shinyapps[6774086]: Attaching package: ‘dplyr’
2022-08-12T01:47:51.287080+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287170+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287247+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287321+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287285+00:00 shinyapps[6774086]: The following objects are masked from ‘package:base’:
2022-08-12T01:47:51.287399+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287129+00:00 shinyapps[6774086]: The following objects are masked from ‘package:stats’:
2022-08-12T01:47:51.287440+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287208+00:00 shinyapps[6774086]:     filter, lag
2022-08-12T01:47:51.287362+00:00 shinyapps[6774086]:     intersect, setdiff, setequal, union
2022-08-12T01:47:51.287605+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287477+00:00 shinyapps[6774086]: Attaching package: ‘lubridate’
2022-08-12T01:47:51.287512+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287551+00:00 shinyapps[6774086]: The following objects are masked from ‘package:base’:
2022-08-12T01:47:51.287725+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287650+00:00 shinyapps[6774086]:     date, intersect, setdiff, union
2022-08-12T01:47:51.287760+00:00 shinyapps[6774086]: Attaching package: ‘data.table’
2022-08-12T01:47:51.287686+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287792+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287874+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.287834+00:00 shinyapps[6774086]: The following objects are masked from ‘package:lubridate’:
2022-08-12T01:47:51.287907+00:00 shinyapps[6774086]:     hour, isoweek, mday, minute, month, quarter, second, wday, week,
2022-08-12T01:47:51.287938+00:00 shinyapps[6774086]:     yday, year
2022-08-12T01:47:51.287976+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288016+00:00 shinyapps[6774086]: The following objects are masked from ‘package:dplyr’:
2022-08-12T01:47:51.288052+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288088+00:00 shinyapps[6774086]:     between, first, last
2022-08-12T01:47:51.288129+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288167+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288205+00:00 shinyapps[6774086]: Attaching package: ‘rlang’
2022-08-12T01:47:51.288241+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288278+00:00 shinyapps[6774086]: The following object is masked from ‘package:data.table’:
2022-08-12T01:47:51.288316+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288424+00:00 shinyapps[6774086]: Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 6.3.1; sf_use_s2() is TRUE
2022-08-12T01:47:51.288353+00:00 shinyapps[6774086]:     :=
2022-08-12T01:47:51.288389+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288455+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288492+00:00 shinyapps[6774086]: Attaching package: ‘jsonlite’
2022-08-12T01:47:51.288589+00:00 shinyapps[6774086]: The following objects are masked from ‘package:rlang’:
2022-08-12T01:47:51.288542+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288627+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288659+00:00 shinyapps[6774086]:     flatten, unbox
2022-08-12T01:47:51.288695+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288735+00:00 shinyapps[6774086]: The following object is masked from ‘package:shiny’:
2022-08-12T01:47:51.288767+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288800+00:00 shinyapps[6774086]:     validate
2022-08-12T01:47:51.288846+00:00 shinyapps[6774086]: 
2022-08-12T01:47:51.288883+00:00 shinyapps[6774086]: Error in value[[3L]](cond) : plot.new has not been called yet
2022-08-12T01:47:51.288921+00:00 shinyapps[6774086]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2022-08-12T01:47:51.288953+00:00 shinyapps[6774086]: Execution halted
2022-08-12T01:47:51.288985+00:00 shinyapps[6774086]: Shiny application exiting ...

I've tried reordering the libraries, in case it was a masking issue, but have not been able to figure this out. Any help or direction at all would be useful.

One other thing I might mention is that I'm using a .shp file and combining that with some API data on the back end. Everything works well locally, but no joy on publishing to shinyapps.io.

Thanks.

I figured this out - I was relying on the box() function, used in the shinydashboard library, but without meaning to or calling the shinydashboard library. Because there is a box() function in the graphics library, it was attempting to call a plot instead of providing a box around my sliders.

Basically, a bonehead mistake, but an easy one to make if you're switching between base shiny and shinydashboards.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.