Error: could not find function "shinyApp"

1,371 views
Skip to first unread message

Ali Hadjihoseini

unread,
Jun 21, 2017, 9:50:53 AM6/21/17
to Shiny - Web Framework for R
I have tried to run the simple template, as it is explained in tutorial (https://shiny.rstudio.com/tutorial/) but is is not successful ! I have the following error :

library(shiny)
ui <- fluidPage()
server <- function(input,output){}
shinyApp(ui=ui,server=server)
 
Error: could not find function "shinyApp"

Even trying to get help : 

?shinyApp

the answer is :

No documentation for ‘shinyApp’ in specified packages and libraries: 
you could try ‘??shinyApp’

Could somebody help me please ? 

Dean Attali

unread,
Jun 21, 2017, 5:50:01 PM6/21/17
to Shiny - Web Framework for R
Try replacing the last line with

shiny::shinyApp(ui=ui,server=server)

If you then get a different error, about ui or server not being found, then make sure you run each of the lines starting at the top

Saeed Abdolahi

unread,
Jun 19, 2018, 2:41:27 AM6/19/18
to Shiny - Web Framework for R
Hi Ali,
firstly try in with
> shiny:: shinyApp(....

as Dean suggests, if errors changed you need to install dependency packages like: "httpuv" and "xtable".
Reply all
Reply to author
Forward
0 new messages