We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.ps.graphics.createDevice()
1 parent 535110f commit ac90f38Copy full SHA for ac90f38
crates/ark/src/lsp/modules/public/graphics.R
@@ -40,10 +40,15 @@ setHook("before.grid.newpage", function(...) {
40
41
# Create the graphics device.
42
# TODO: Use 'ragg' if available?
43
- grDevices::png(
44
- filename = plotsPath,
45
- type = type,
46
- res = res
+ withCallingHandlers(
+ grDevices::png(
+ filename = plotsPath,
+ type = type,
47
+ res = res
48
+ ),
49
+ warning = function(w) {
50
+ stop("Error creating graphics device: ", conditionMessage(w))
51
+ })
52
)
53
54
# Update the device name + description in the base environment.
0 commit comments