'Does the new update of mosaic (1.8.3) not work on mac?

I notice that the mosaic package was updated a few days ago (1.8.3). Since then, I keep getting an error message that mosaic can't load.

    > library(mosaic)
    Error: package or namespace load failed for ‘mosaic’:
    object ‘compare’ is not exported by 'namespace:mosaicCore'

The package installed, and it works on a PC. I've tried reinstalling R and R studio to be sure but I keep getting the same error. Anyone who has had the same problem or figured out how to fix it?



Solution 1:[1]

It works fine on a Mac (it was developed on a Mac).

I'm not sure how you did your installation, but you also need to have an updated version of mosaicCore. Looks like that didn't happen for some reason.

I'd suggest updating mosaicData and ggformula as well, if your update method didn't trigger those already. All four packages went to CRAN last week. If it has been awhile, you might do update.packages().

Solution 2:[2]

My daughter met the same problem today.

As per the suggestion here, we install the newest mosaicData, and the problem remains.

Then quit Rstudio, restart Rstudio, after running library(mosaic) again, it mentions that several packages are missing,

After installing the missing packages, everything is ok.

Solution 3:[3]

I had other people in my class that had the same issue. Similar to the above answer, i had to:

  1. Uninstall/delete the package ggformula
  2. Update the package mosaicCore
  3. Reinstall ggformula
  4. Reinstall mosaic

That is how i was able to resolve the issue.

Solution 4:[4]

Try this;

layout.addView(webView, layout.getChildCount())

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rpruim
Solution 2 YP Shen
Solution 3 user15053575
Solution 4 fobidlim