R错误:阴影图形设备错误 [英] R Error: Shadow graphics device error

查看:73
本文介绍了R错误:阴影图形设备错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,我知道上述错误有很多线程,但是(至少我)无法找到解决方案.因此,RStudio在尝试绘制某些内容时给了我以下错误:

yes I know there are many threads to this above mentioned error, but (at least I) wasn't able to find a solution. So RStudio gives me the following error while trying to plot something:

RStudioGD()中的
    Error in RStudioGD() : 
    Shadow graphics device error: r error 4 (R code execution error)

R支持jpeg和png似乎是一个问题.在R环境中运行

It seems to be a problem with R supporting jpeg and png. Running in R environment

    >capabilities()
    jpeg         png        tiff       tcltk         X11        aqua 
    FALSE       FALSE       FALSE       FALSE       FALSE       FALSE
    http/ftp     sockets      libxml        fifo      cledit       iconv 
    TRUE        TRUE        TRUE        TRUE       FALSE        TRUE 
    NLS     profmem       cairo         ICU long.double     libcurl 
    TRUE       FALSE       FALSE        TRUE        TRUE        TRUE 

准确地显示了这一点.安装了cairo和pango.而且我不知道该怎么办.在这里,您可以找到我要运行的代码.我安装了magrittr,ggplot2,dplyr,cowplot和patchwork软件包.此外,我正在linux上运行最新的RStudio版本.R本身也会更新.

shows exactly that. cairo and pango are installed. And I have no idea what else to do. Here you can find the code I'm trying to run. I installed the packages magrittr, ggplot2, dplyr, cowplot and patchwork. Furthermore I'm running the latest RStudio version on linux. R itself is also updated.

谢谢.

编辑:对于任何遇到相同问题的人:完全重新安装R,RStudio和大多数缺陷,可以通过某种方式解决该问题.

推荐答案

有点晚了,但是今天我遇到了同样的问题.我使用Ctrl + Shift + F10重新启动了会话,并且可以正常工作.

A bit late, but today I had the same problem. I restarted my session with Ctrl + Shift + F10 and it worked.

这篇关于R错误:阴影图形设备错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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