I have installed shiny in RStudio running R 2.15.3.
I load the package by library(shiny)
But when I try to use shinyApp command I'll get the following
library(shiny)
ui <- fluidPage()
server <- function(input,output){}
shinyApp(ui=ui,server=server)
Error: could not find function "shinyApp"
And even when I'm trying to use R help by :
?shinyApp
the answer is :
No documentation for ‘shinyApp’ in specified packages and libraries:
you could try ‘??shinyApp’
And it is very disappointing because this command is one of the essential commands that you need all time !
I have to mention that the sample code I have tried to compile, is from official tutorial by shiny (shiny.rstudio.com/tutorial) ! So basically it should work.
Can somebody help me on this please !
These functions create Shiny app objects from either an explicit UI/server pair ( shinyApp ), or by passing the path of a directory that contains a Shiny app ( shinyAppDir ). You generally shouldn’t need to use these functions to create/run applications; they are intended for interoperability pur- poses, such as embedding Shiny apps inside a knitr document
sessionInfo()
. In older versions it used to be calledrunApp()
I think. You are using a fairly old version of R so you might not be able to install the latest version of the package.