在新电脑拯救者y9000p上安装了R,当时安装的是R4.2.1,安装完毕后一打开界面就显示没有file.edit函数,导致现在很多库都安装不了,一安装新的库就提醒没有file.edit函数。现在在Rstudio中加载的是4.0.4
一打开界面在交互式界面就是以下代码
R version 4.0.4 (2021-02-15) -- "Lost Library Book"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Error: could not find function "file.edit"
下载绘图包ggplot2的时候出现以下内容:
错误: 没有"file.edit"这个函数
停止执行
Warning in install.packages :
installation of package ‘cli’ had non-zero exit status
错误: 没有"file.edit"这个函数
停止执行
Warning in install.packages :
installation of package ‘farver’ had non-zero exit status
错误: 没有"file.edit"这个函数
停止执行
Warning in install.packages :
installation of package ‘rlang’ had non-zero exit status
错误: 没有"file.edit"这个函数
停止执行
Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status
错误: 没有"file.edit"这个函数
停止执行
Warning in install.packages :
installation of package ‘tibble’ had non-zero exit status
错误: 没有"file.edit"这个函数
停止执行
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status、
当下已经尝试过重新安装R4.2.1,以及改装旧版本4.0.4。
求解如何修复函数file.edit(似乎是系统自带函数),恳请各位解惑!