简体   繁体   English

RStudio,更新包,重新启动 R,RStudio 进入无限循环

[英]RStudio, updating packages, restarting R, RStudio goes into endless loop

My script gives me a message that I have version 0.2.5 of tidyselect and that version 1.1.0 is required.我的脚本给了我一条消息,我有 tidyselect 的 0.2.5 版并且需要 1.1.0 版。 I use RStudio to update tidyselect.我使用 RStudio 来更新 tidyselect。 RStudio gives me the message that Restating prior to updating is strongly recommended and that RStudio can restart R and then automatically continue the installation. RStudio 给我的消息是强烈建议在更新之前重新启动,并且 RStudio 可以重新启动 R,然后自动继续安装。 When I click yes, RStudio goes into an endless loop, continually producing this same message abut updating Loaded Packages.当我单击是时,RStudio 进入无限循环,不断产生与更新加载包相关的相同消息。

I don't see any other way to update this package, and this method using RStudio also does not work.我没有看到任何其他方式来更新这个包,这个使用 RStudio 的方法也不起作用。

I have the latest (as of today 9/30/20) versions of RStudio and R.我有最新的(截至今天 9/30/20)RStudio 和 R 版本。

There could be multiple problems at hand but I can think of some that might occur as they have done with me as well.手头可能有多个问题,但我可以想到一些可能会发生的问题,就像他们对我所做的那样。

install.packages("remotes")

#would be aid to install the package into R, then fill in the code below. #将有助于将软件包安装到R中,然后填写下面的代码。

remotes::install_github("r-lib/tidyselect")

Since tidyselect is connected to several other packages, R studio will request you to update the other packages as well.由于 tidyselect 连接到其他几个包,R studio 也会要求您更新其他包。 If your packages are not updated, it might go into a loop.如果你的包没有更新,它可能会进入一个循环。

Enter 1 after the request to update here to update all the connected packages.在此处请求更新后输入1以更新所有连接的包。

I hope this helped.我希望这有帮助。 Otherwise rephrasing your question would help me give more clarity to the situation.否则,重新表述您的问题将有助于我更清楚地了解情况。

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

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