search for: rrawhist

Displaying 3 results from an estimated 3 matches for "rrawhist".

Did you mean: rawhist
2002 Apr 30
1
followup -- deficiencies in readline capability
...; for more information. Type `demo()' for some demos, `help()' for on-line help, or `help.start()' for a HTML browser interface to help. Type `q()' to quit R. > debug(history) > debug(savehistory) > history() debugging in: history() debug: { file1 <- tempfile("Rrawhist") savehistory(file1) rawhist <- scan(file1, what = "", quiet = TRUE, sep = "\n") unlink(file1) nlines <- length(rawhist) inds <- max(1, nlines - max.show):nlines if (reverse) inds <- rev(inds) file2 <- tempfile("hist&...
2006 Apr 11
1
pattern in history
...so I modified the utils::history function for that purpose. I found it useful. I append the code ( I only added the two lines with #**) Romain. history2 <- function (pattern="", max.show = 25, reverse = FALSE, unique = pattern!="", ...) { file1 <- tempfile("Rrawhist") savehistory(file1) rawhist <- scan(file1, what = "", quiet = TRUE, sep = "\n") rawhist <- rawhist[grep(pattern, rawhist, ...)] #** if(unique) rawhist <- unique(rawhist) #** unlink(file1) nlines <- length(rawhist) inds <- max(...
2004 Nov 08
1
can one evaluate an expression in a comment? (or insert resultsinto history?)
But that doesn't put the result into the history buffer, to be written to a file only later when I savehistory(filename). Bert Gunter also suggested ?capture.output and ?textConnection, but I cannot see how to get text into the history buffer as comments, but with evaluated expressions (values). I know how to use paste, sink, write, etc. but nothing that I can see inserts into the history