Giter Club home page Giter Club logo

Comments (5)

wch avatar wch commented on May 11, 2024

I think it's unlikely that this is due to the different R versions. Have you tried installing the latest version from github on both systems? If you could include the output of sessionInfo() or, better, devtools_session_info() from both systems, that would be helpful.

from shinydashboard.

rweyant avatar rweyant commented on May 11, 2024

Using RRO (version 8.0.0) because I currently only have a 32-bit version of Windows. Same error on someone else's 64-bit Windows, but I don't have access to their session info at the moment.

> library(shiny)
> library(shinydashboard)

Attaching package:shinydashboardThe following object is masked frompackage:graphics:

    box

> menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard"))
<i class="fa fa-dashboard"></i> 
Error in tagAssert(icon, type = "i") : 
  Expected an object with class 'shiny.tag'.
> devtools::session_info()
Session info------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.1.1 (2014-07-10)
 system   i386, mingw32               
 ui       RStudio (0.98.1103)         
 language (EN)                        
 collate  English_United States.1252  
 tz       America/New_York            

Packages----------------------------------------------------------------------------------
 package        * version date       source                                 
 bitops           1.0.6   2013-08-17 CRAN (R 3.1.1)                         
 caTools          1.17.1  2014-09-10 CRAN (R 3.1.1)                         
 devtools         1.6     2014-09-23 CRAN (R 3.1.1)                         
 digest           0.6.4   2013-12-03 CRAN (R 3.1.1)                         
 htmltools        0.2.6   2014-09-08 CRAN (R 3.1.1)                         
 httpuv           1.3.0   2014-04-04 CRAN (R 3.1.1)                         
 Rcpp             0.11.3  2014-09-29 CRAN (R 3.1.1)                         
 RJSONIO          1.3.0   2014-07-28 CRAN (R 3.1.1)                         
 rstudioapi       0.1     2014-03-27 CRAN (R 3.1.1)                         
 shiny          * 0.10.1  2014-07-26 CRAN (R 3.1.1)                         
 shinydashboard * 0.3.1   2015-04-15 Github (rstudio/shinydashboard@c06994c)
 xtable           1.7.4   2014-09-12 CRAN (R 3.1.1)            

Using CRAN:

> library(shiny)
> library(shinydashboard)

Attaching package:shinydashboardThe following object is masked frompackage:graphics:

    box

> menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard"))
<li>
  <a href="#shiny-tab-dashboard" data-toggle="tab" data-value="dashboard">
    <i class="fa fa-dashboard"></i>
    <span>Dashboard</span>
  </a>
</li> 
> devtools::session_info()
Session info ------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.1.3 (2015-03-09)
 system   i386, mingw32               
 ui       RStudio (0.98.1103)         
 language (EN)                        
 collate  English_United States.1252  
 tz       America/New_York            

Packages ----------------------------------------------------------------------------------
 package        * version   date       source                                 
 devtools       * 1.7.0     2015-01-17 CRAN (R 3.1.3)                         
 digest         * 0.6.8     2014-12-31 CRAN (R 3.1.3)                         
 htmltools      * 0.2.6     2014-09-08 CRAN (R 3.1.3)                         
 httpuv         * 1.3.2     2014-10-23 CRAN (R 3.1.3)                         
 mime           * 0.3       2015-03-29 CRAN (R 3.1.3)                         
 R6             * 2.0.1     2014-10-29 CRAN (R 3.1.3)                         
 Rcpp           * 0.11.5    2015-03-06 CRAN (R 3.1.3)                         
 RJSONIO        * 1.3-0     2014-07-28 CRAN (R 3.1.3)                         
 rstudio        * 0.98.1103 2015-04-16 local                                  
 rstudioapi     * 0.3.1     2015-04-07 CRAN (R 3.1.3)                         
 shiny            0.11.1    2015-02-11 CRAN (R 3.1.3)                         
 shinydashboard   0.3.1     2015-04-16 Github (rstudio/shinydashboard@c06994c)
 xtable         * 1.7-4     2014-09-12 CRAN (R 3.1.3)     

from shinydashboard.

wch avatar wch commented on May 11, 2024

I think I see the problem: You need to update your version of shiny to at least 0.11.

from shinydashboard.

rweyant avatar rweyant commented on May 11, 2024

Good catch. RStudio was not detecting the need for updates (Tools->Check For Package Updates) when using the RRO version, and using install.packages() would get the older version.

Thanks for your help!

For others' reference, these steps allowed me to get the most up to date versions of everything necessary.

devtools::install_github("rstudio/httpuv")
devtools::install_github("yihui/mime")
devtools::install_github("rstudio/shiny")

from shinydashboard.

wch avatar wch commented on May 11, 2024

I'm not completely sure, but I suspect the reason it didn't install a newer version of Shiny because RRO is on version 3.1.1, and CRAN doesn't supply binary packages for those older versions of R.

from shinydashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.