问题描述
我使用 RStudio 1.4.1103 在 R 3.6.3 上运行。由于某些原因,我重新安装了这两个软件(我尝试了 R 4.0.3,但我在安装软件包时遇到了很多问题,所以我又回到了 R 3.6.3)。
自从重新安装 R 3.6.3 以来,我无法重新安装“questionr”包。目前所有其他人都可以,但“提问者”不可能。
这里是消息:
> install.packages("questionr")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Gloubi/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
questionr 0.7.3 0.7.4 FALSE
installing the source package ‘questionr’
essai de l'URL 'https://cran.rstudio.com/src/contrib/questionr_0.7.4.tar.gz'
Content type 'application/x-gzip' length 1714911 bytes (1.6 MB)
downloaded 1.6 MB
Impossible de configurer l'écran au nombre de lignes et de colonnes spécifié.
The downloaded source packages are in
‘C:\Users\Gloubi\AppData\Local\Temp\Rtmpi2lpev\downloaded_packages’
错误是(我的系统是法语):“无法将屏幕配置为指定的行数和列数。”
这是什么意思?
之前,这个包绝对没有问题。它是兼容的(R > 3.5.0),并且不需要编译。在重新安装之前,它使用 R 3.6.3。
编辑:
这个问题非常非常奇怪。
当我打开 RStudio 时,它告诉我没有安装包“questionr”,并在脚本窗口上方的淡黄色横幅中询问我是否要安装它(因为我的脚本提到了它但它没有安装)。
如果我点击“安装”(而不是用函数“install.package”编写它),它会安装它:
Installing 'questionr' ...
Installing package into 'C:/Users/Gloubi/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
questionr 0.7.3 0.7.4 FALSE
installing the source package 'questionr'
essai de l'URL 'https://cran.rstudio.com/src/contrib/questionr_0.7.4.tar.gz'
Content type 'application/x-gzip' length 1714911 bytes (1.6 MB)
==================================================
downloaded 1.6 MB
The downloaded source packages are in
'C:\Users\Gloubi\AppData\Local\Temp\RtmpcLM5vS\downloaded_packages'
<U+2714> Package 'questionr' successfully installed.
但是,如果我刚刚启动它,它就不起作用:slight_smile:
> library(questionr)
Error in library(questionr) :
no package named 'questionr' is found
这没有任何意义......它让我发疯!
乔尔
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)