R 报错:没有““这个函数

时间:2025-02-09 12:28:43

这里写自定义目录标题


问题:使用R安装某工具包时报错:
Error in (“xxx”, dependencies = True) :
没有""这个函数

解决方案:
清华镜像站 R包地址
/CRAN/
我先查看下自己R的版本号(windows 环境,4.2)
因此进入/CRAN/bin/windows/contrib/4.2/

可以通过以下两种方法安装:
一是直接从镜像安装,二是本地安装

  1. 镜像:
    (“/CRAN/bin/windows/contrib/4.2/tidyxl_1.0.”, repos=NULL)
  2. 本地安装:
    (“…zip”, repos = NULL)

程序包‘xxxx’打开成功,MD5和检查也通过
完美解决!!

相关文章