Can't install package mosaic

Hi All,

when trying to install the package "mosaic", I get following error message:

install.packages("mosaic")

Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.5’

(as ‘lib’ is unspecified)

Warning in install.packages :

dependency ‘ggstance’ is not available

also installing the dependency ‘ggformula’

There are binary versions available but the source versions are later:

binary source needs_compilation

ggformula 0.9.4 0.10.2 FALSE

mosaic 1.5.0 1.8.4.2FALSE

installing the source packages ‘ggformula’, ‘mosaic’

trying URL 'https://cran.rstudio.com/src/contrib/ggformula_0.10.2.tar.gz'

Content type 'application/x-gzip' length 1652824 bytes (1.6 MB)

downloaded 1.6 MB

trying URL 'https://cran.rstudio.com/src/contrib/mosaic_1.8.4.2.tar.gz'

Content type 'application/x-gzip' length 3587507 bytes (3.4 MB)

downloaded 3.4 MB

ERROR: dependency 'ggstance' is not available for package 'ggformula'

  • removing 'C:/Users/xxx/Documents/R/win-library/3.5/ggformula'

In R CMD INSTALL

Warning in install.packages :

installation of package ‘ggformula’ had non-zero exit status

ERROR: dependency 'ggformula' is not available for package 'mosaic'

  • removing 'C:/Users/xxx/Documents/R/win-library/3.5/mosaic'

In R CMD INSTALL

Warning in install.packages :

installation of package ‘mosaic’ had non-zero exit status

The downloaded source packages are in

‘C:\\Users\\xxxx\\AppData\\Local\\Temp\\RtmpmGkzzF\\downloaded\_packages’

Can someone please help me? I'm relatively new to RStudio.

What version of R are you running? You can see that by running sessionInfo(). The output of that can be long but the R version is at the top. When I run it, the output shows I am running R 4.2.1

> sessionInfo()
R version 4.2.1 (2022-06-23 ucrt)

ggstance, which is a package dependency for mosaic requires R >= 3.6 so you need to update your R version (3.5) in order to install it

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.