Unable to Render plots in Rmarkdown

Description of issue -
Unable to generate plots right below the code chunk like Rmarkdown usually does

Error message: "Error in (function (which = dev.cur()) :
QuartzBitmap_Output - unable to open file '/Volumes/GoogleDrive/My Drive/keerthana/CATS-local/script/.Rproj.user/shared/notebooks/-Untitled/1/18313FC65002FFE4/czwnzo2te1pcb_t/_rs_chunk_plot_001.png' "

My code :

summary(cars)
plot(pressure)

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version:
  • OS Version:
  • R Version:
  • sessionInfo(): <!-- R version 4.1.0 (2021-05-18)
    Platform: x86_64-apple-darwin17.0 (64-bit)
    Running under: macOS Big Sur 10.16

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_4.1.0 htmltools_0.5.1.1 tools_4.1.0 yaml_2.2.1
[5] rmarkdown_2.8 knitr_1.33 xfun_0.23 digest_0.6.27
[9] rlang_0.4.11 evaluate_0.14 /-->


Referred here from support.rstudio.com

1 Like

It looks like you upgraded to the newest version of R which has a new graphics engine. To use this you need a preview release of RStudio. You can get this at https://dailies.rstudio.com/.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.