简体   繁体   中英

R-Studio on OSX can't load mosaic package

I am running OSX 10.10, R-Studio Version 0.99.484, and R version 3.2.2.

I just made a fresh install of R and R-Studio using the installers from their respective websites. I use install.packages to install "mosaic" and then I try loading it using library, but it gives me the following error:

library("mosaic", lib.loc="/Library/Frameworks/R.framework/Versions/3.2/Resources/library")
Error : object ‘dendro_data.hclust’ is not exported by 'namespace:ggdendro'
Error: package or namespace load failed for ‘mosaic’

I tried reinstalling ggdendro but nothing. Does anyone have any advice on how to deal with this issue?

I encountered this same error and seem to have somewhere along the way resolved it. Steps taken include:

  • cleaned out my libraries (local and System)
  • used Disk Utility to repair any odd permissions
  • reinstalled R
  • opened RStudio and imported package with dependencies from the repository:
 > install.packages("mosaic", lib="/Library/Frameworks/R.framework/Versions/3.2/Resources/library") 
  • console prompted me to choose the older precompiled package or the newer, I chose older

Do you want to install from sources the package which needs compilation? y/n: n

  • mosaic loaded happily
 > library("mosaic", lib.loc="/Library/Frameworks/R.framework/Versions/3.2/Resources/library") 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM