Skip to content

Commit 7e1a141

Browse files
committed
Temporary simple pager for help output
1 parent 26ac724 commit 7e1a141

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

_extensions/drop/drop-runtime.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

drop-runtime/src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ export function startWebRApp(elem: HTMLDivElement, packages: string[] = []) {
7474
height = getOption("webr.fig.height", 504)
7575
)
7676
webr::shim_install()
77+
options(pager = function(files, ...) {
78+
writeLines(gsub(".[\b]", "", readLines(files)))
79+
})
7780
`);
7881

7982
// Install packages

0 commit comments

Comments
 (0)