Skip to content

Commit 09c4eab

Browse files
authored
Enable rich output tests for Ark kernel (#23)
Ark is Posit's modern R kernel that produces display_data messages natively for graphics. Remove outdated IRdisplay assumption and test with base R plot() commands, which trigger Ark's native graphics device to emit display_data with image/png MIME type.
1 parent 104fb8a commit 09c4eab

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/snippets.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ impl LanguageSnippets {
9090
completion_var: "test_variable_for_completion",
9191
completion_setup: "test_variable_for_completion <- 42",
9292
completion_prefix: "test_variable_for_",
93-
// Ark doesn't have IRdisplay, skip rich output tests for now
94-
display_data_code: "# Ark doesn't have IRdisplay package",
95-
update_display_data_code: "# R kernels typically don't support update_display_data",
93+
// Ark produces display_data natively for graphics - no IRdisplay needed
94+
display_data_code: "plot(1:10)",
95+
// Note: update_display_data may not trigger in batch mode; Ark may optimize to single render
96+
update_display_data_code: "plot(1:10); points(5, 5, col='red', pch=19)",
9697
}
9798
}
9899

0 commit comments

Comments
 (0)