Skip to content

Commit 0df3b2b

Browse files
committed
Also use webR canvas as in-flight graphics device
1 parent 208ade1 commit 0df3b2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webr_kernel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class WebRKernel extends BaseKernel {
3535
// Enable dev.control to allow active plots to be copied
3636
await this.webR.evalRVoid(`
3737
options(device = function(...){
38-
pdf(...)
38+
webr::canvas(...)
3939
dev.control("enable")
4040
}, webr.plot.new = FALSE)
4141
`);

0 commit comments

Comments
 (0)