当我尝试在Macbook Pro的R上安装“插入符”软件包时,为什么仍不断收到此错误?

问题描述

library(caret)

错误:在loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中,对于'插入符'的包或名称空间加载失败: 没有名为“食谱”的软件包

编辑:我尝试了此操作,但仍然无法正常工作。有什么建议吗?

> install.packages("recipes")
    
There is a binary version available but the source version is later:
        binary source needs_compilation
recipes 0.1.10 0.1.13             FALSE
    
installing the source package ‘recipes’
    
trying URL 'https://cran.rstudio.com/src/contrib/recipes_0.1.13.tar.gz'
Content type 'application/x-gzip' length 633375 bytes (618 KB)
==================================================
downloaded 618 KB
    
* installing *source* package ‘recipes’ ...
** package ‘recipes’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI[[i]]) : 
  there is no package called ‘lava’
ERROR: lazy loading Failed for package ‘recipes’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/recipes’
Warning in install.packages :
  installation of package ‘recipes’ had non-zero exit status
    
The downloaded source packages are in
‘/private/var/folders/g8/j08h_2ts7gnd8_1lvw0dh08r0000gn/T/Rtmpkwi6gN/downloaded_packages’

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)