Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
2701 views
1
mypager <- function(files, header, title, delete.file) {
2
tfile <- tempfile(paste(basename(files[1]),"__", sep=""))
3
Tf <- file(tfile, open="w+")
4
stopifnot(file.append(tfile, files))
5
system(paste("emacsclient -n", tfile))
6
}
7
file.show(file.path(R.home("doc"), "COPYRIGHTS"),
8
pager = mypager)
9
10
options(pager = mypager)
11
12
13
## test :
14
file.show(file.path(R.home("doc"), "COPYRIGHTS"))
15
16
## or
17
RShowDoc('NEWS')
18
## using a suboptimal file name
19
20