The application failed to start: exited unexpectedly with code 1; using dplyr

I published an app to shinyapps.io, and every time I try loading it, it throws up the following error:

An error has occurred

The application failed to start: exited unexpectedly with code 1


Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

Warning in View(midwest) : unable to open display
Error in value[[3L]](cond) : unable to start data viewer
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted

Not sure what to make of it.

You can't call view inside a shiny app, that is why you are getting the error message.