I am using the shinydashboard package and I have a app.r file that looks like:
library(shiny)
library(shinydashboard)
shinyApp(ui, server)I press CTRL + SHIFT + ENTER to run it and I get an error:
Error in eval(expr, envir, enclos) :
could not find function "dashboardPage"But then I highlight
library(shinydashboard)and re-run that line by pressing CTRL + ENTER
and the output is:
Attaching package: ‘shinydashboard’
The following object is masked from ‘package:graphics’:
boxTHEN I press CTRL + SHIFT + ENTER again and the app works fine.
Any idea why "library(shinydashboard)" doesn't seem to register the first time or any way I can attach it like it seems to want?
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/a0304a1a-e2c6-4cea-b3a1-2f16a4ca7c20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.