Trouble installing Mosaic

I have installed mosaic in the past with no problems on other computers last fall. Now when I try to do it on my Mac, I get the following error:

install.packages("mosaic")
also installing the dependency ‘leaflet’

There are binary versions available but the source versions are later:
binary source needs_compilation
leaflet 1.1.0 2.0.2 FALSE
mosaic 1.1.1 1.5.0 FALSE

installing the source packages ‘leaflet’, ‘mosaic’

trying URL 'http://cran.rstudio.com/src/contrib/leaflet_2.0.2.tar.gz'
Content type 'application/x-gzip' length 2059752 bytes (2.0 MB)

downloaded 2.0 MB

trying URL 'http://cran.rstudio.com/src/contrib/mosaic_1.5.0.tar.gz'
Content type 'application/x-gzip' length 3376751 bytes (3.2 MB)

downloaded 3.2 MB

Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2019b.1.0/zoneinfo/America/Chicago'

  • installing source package ‘leaflet’ ...
    ** package ‘leaflet’ successfully unpacked and MD5 sums checked
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** preparing package for lazy loading
    Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
    there is no package called ‘shiny’
    ERROR: lazy loading failed for package ‘leaflet’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/leaflet’
    Warning in install.packages :
    installation of package ‘leaflet’ had non-zero exit status
    Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
    unknown timezone 'zone/tz/2019b.1.0/zoneinfo/America/Chicago'
    ERROR: dependency ‘leaflet’ is not available for package ‘mosaic’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/mosaic’
    Warning in install.packages :
    installation of package ‘mosaic’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/n5/03yyyk1973xftkd78x7g35v80000gn/T/RtmpyOAa9Z/downloaded_packages’

Any help would be greatly appreciated.

You are missing shinyas a dependency for leaflet, try installing it first

install.packages("shiny") 

That worked! Seems so obvious now. But I wonder why I didn't have to do that last year. Oh well, thanks SO much for your help!!

Packages get updated, dependencies change, even your setup changes, if you were installing last year version in your last year set up, you wouldn't have to do this extra step.

Anyways, if your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.