简体   繁体   English

OSX上的R-Studio无法加载镶嵌包

[英]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. 我正在运行OSX 10.10,R-Studio版本0.99.484和R版本3.2.2。

I just made a fresh install of R and R-Studio using the installers from their respective websites. 我只是使用各自网站上的安装程序重新安装了R和R-Studio。 I use install.packages to install "mosaic" and then I try loading it using library, but it gives me the following error: 我使用install.packages安装“ mosaic”,然后尝试使用库加载它,但它给了我以下错误:

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. 我尝试重新安装ggdendro,但一无所获。 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 重新安装R
  • opened RStudio and imported package with dependencies from the repository: 打开RStudio并从存储库中导入具有相关性的软件包:
 > 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 y / n:n

  • mosaic loaded happily 马赛克快乐地加载
 > library("mosaic", lib.loc="/Library/Frameworks/R.framework/Versions/3.2/Resources/library") 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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