调用 library(raster) 或 require(raster) 会导致 Rstudio 中止会话 [英] Call to library(raster) or require(raster) causes Rstudio to abort session

查看:171
本文介绍了调用 library(raster) 或 require(raster) 会导致 Rstudio 中止会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前在我的计算机上使用过光栅包,但最近,对库(光栅)或要求(光栅)的任何调用都会导致 Rstudio 中止会话 - R 会话中止.R 遇到致命错误.会话被终止".

I've used the raster package before on my computer but recently, any calls to library(raster) or require(raster) are causing Rstudio to abort the session - "R session aborted. R encountered a fatal error. The session was terminated".

我尝试删除软件包并重新安装.install.package("raster") 工作,但随后 library 或 require 调用 raster 导致会话中止.我也试过重新启动 rstudio 和我的电脑.

I've tried removing packages and reinstalling. install.package("raster") worked but then library or require calls to raster cause the session to abort. I've also tried restarting both rstudio and my computer.

在 Mac 上工作 - Mojave 版本 10.14.6.Rstudio 版本 1.2.1335.R 版本 3.6.0 (2019-04-26)

Working on a Mac - Mojave version 10.14.6. Rstudio version 1.2.1335. R version 3.6.0 (2019-04-26)

我还尝试按照此线程的建议更新光栅依赖的包 - R Session Aborted when loading package 但这并没有解决问题.

I've also tried updating the packages that raster depends on as suggested by this thread - R Session Aborted when loading package but that did not solve the problem.

这只是更新问题吗?我的 mac 和 R 版本不是那么旧.谢谢!

Is this just an update problem? My mac and R versions aren't that old. Thank you!

推荐答案

这里有一些讨论:https://github.com/rspatial/raster/issues/63

在我看来,最好的方法是安装一个新的 R(无论如何你落后几个版本)和新的包.

It seems to me that the best approach is to install a fresh R (you are a couple of versions behind anyway) and fresh packages.

这篇关于调用 library(raster) 或 require(raster) 会导致 Rstudio 中止会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆