简体   繁体   English

启动R3.0.0和RStudio时出现错误消息

[英]Error message when starting R3.0.0 and RStudio

I just downloaded R3.0.0 in Windows 7, 64 bit. 我刚刚在Windows 7(64位)中下载了R3.0.0。

When I click on the R icon, R launches but with the following error and warning 当我单击R图标时,R启动,但出现以下错误和警告

Error in loadNamespace(name) : there is no package called ‘modeltools’
During startup - Warning message:
unable to restore saved data in .RData 

and when I try to start RStudio, it does not launch but says 当我尝试启动RStudio时,它没有启动,但是说

The R session had a fatal error

Below is a screenshot of the current home page for RStudio support: 以下是当前RStudio支持主页的屏幕截图:

在此处输入图片说明

A simple reinstall should solve your problem. 一个简单的重新安装应该可以解决您的问题。 Do be sure to verify the downloaded file's integrity by checking its MD5 hash. 确保通过检查其MD5哈希值来验证下载文件的完整性。 I'm not a Windows user so I can't recommend any particular software in particular to do this. 我不是Windows用户,因此我不建议特别使用任何特定软件来执行此操作。 I guess a good starting point would be Microsoft's FCIV (read about it here and here ). 我想微软的FCIV是一个很好的起点(请在此处此处阅读)。 But, I'm sure there are lots of GUI alternatives too. 但是,我敢肯定,还有很多GUI替代品。

At the RStudio download page you'll notice that the correct MD5 hashes are listed, along with the correct file sizes. 在RStudio 下载页面上,您会注意到列出了正确的MD5哈希值以及正确的文件大小。


As for your error about the .RData file, that sounds like a corrupt .RData file that should be deleted. 至于关于.RData文件的错误,这听起来像是应该删除的损坏的.RData文件。 Most likely, somewhere along the line, you clicked on "yes" when R asked you if you wanted to save the current session (rather than you explicitly deciding to save the session, and thus, giving the file a proper name). 最有可能的是,当R询问您是否要保存当前会话时(而不是您明确决定保存该会话,并因此给该文件指定了适当的名称),您可能会在该行的某个位置单击“是”。 Since the file has a dot before it, you'll probably need to enable "show hidden files and folders" to find it. 由于文件前面有一个点,您可能需要启用“显示隐藏的文件和文件夹”才能找到它。


Also, remember that after reinstalling R, you'll have to also reinstall all of your installed packages before you can use them! 另外,请记住,重新安装R后,还必须重新安装所有已安装的软件包,然后才能使用它们! After you have R and RStudio back up running, try something like: R和RStudio备份运行后,请尝试以下操作:

update.packages(checkBuilt = TRUE)

to reinstall all of the packages you installed from CRAN. 重新安装从CRAN安装的所有软件包。 If you've installed packages from GitHub and other places, you would need to reinstall those manually. 如果您已经从GitHub和其他地方安装了软件包,则需要手动重新安装。

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

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