DS4PS / cpp-529-fall-2020

http://ds4ps.org/cpp-529-fall-2020/
0 stars 0 forks source link

Shiny not loading #28

Open malmufre opened 4 years ago

malmufre commented 4 years ago

Hello

I am trying to run the code chunks for the flex dashboard but whenever I try to load library(shiny) I get this error.

Error: package or namespace load failed for ‘shiny’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘htmltools’ 0.4.0 is already loaded, but >= 0.4.0.9003 is required

I tried to google it but did not find anything that helped. Note: I updated my R studio a couple days ago, but I am not sure if this may have caused this error.

lecy commented 4 years ago

That's strange. Did you try installing htmltools directly?

install.packages( "htmltools" )
install.packages( "shiny" )

In general it's better to run the file instead of running chunks when shiny is involved. Does the file run, or do you get similar errors?

lecy commented 4 years ago

Current version of HTML tools is 0.5.0:

https://cran.r-project.org/web/packages/htmltools/index.html