Mosaic package not installing properly

Hi everyone sorry if this message isnt as detailed as necessary, I'm a student using r for the first time for a class and am not experienced whatsoever and have no idea what I'm doing wrong but my mosaic package isn't downloading. ): plz help I am desperate

install.packages("mosaic")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/mosaic_1.8.2.tgz'
Content type 'application/x-gzip' length 3114205 bytes (3.0 MB)
==================================================
downloaded 3.0 MB

The downloaded binary packages are in
/var/folders/vj/sl0d7cms4ks2l_51tgh2mcjw0000gn/T//RtmpmvSiWt/downloaded_packages

library(mosaic)
Error: package or namespace load failed for ‘mosaic’

Is that the complete output you get? I suspect you are omitting something since there is no useful information on the error message you have posted.

Hi sorry, this is the complete output in its entirety. I

install.packages("mosaic")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/mosaic_1.8.2.tgz'
Content type 'application/x-gzip' length 3114205 bytes (3.0 MB)
==================================================
downloaded 3.0 MB

The downloaded binary packages are in
/var/folders/vj/sl0d7cms4ks2l_51tgh2mcjw0000gn/T//RtmpmvSiWt/downloaded_packages

library(mosaic)
Error: package or namespace load failed for ‘mosaic’:
package ‘stats’ does not have a namespace

wait sorry its this:

install.packages("mosaic")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/mosaic_1.8.2.tgz'
Content type 'application/x-gzip' length 3114205 bytes (3.0 MB)
==================================================
downloaded 3.0 MB
The downloaded binary packages are in
/var/folders/vj/sl0d7cms4ks2l_51tgh2mcjw0000gn/T//RtmpmvSiWt/downloaded_packages
library(mosaic)
Error: package or namespace load failed for ‘mosaic’:
package ‘stats’ does not have a namespace

The stats package is part of the base R installation, I would try completely removing and reinstalling R.

I attempted doing so yesterday but unfortunately I get the same error

Have you made sure that your system-level package library has been removed? I'm not a macOS user but on Windows, package libraries remain after uninstall.

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.