history(max.show = 25, reverse = FALSE, pattern, ...) timestamp(stamp = date(), prefix = "##------ ", suffix = " ------##", quiet = FALSE) loadhistory(file = ".Rhistory") savehistory(file = ".Rhistory")
max.show | the maximum number of expressions to print from those that match pattern. NA and NaN are not accepted. Inf is accepted and all matched expressions are printed. |
reverse | a logical flag. If TRUE, the expressions are printed with the most recent ones listed first. If reverse=FALSE (the default), the expressions are printed in chronological order. |
pattern | the pattern to use in selecting expressions. |
stamp | any object. Added to history. |
prefix | a character string. The prefix for timestamp. |
suffix | a character string. The suffix for timestamp. |
quiet | a logical value. If TRUE, stamp is invisible. If FALSE (the default), displays stamp with a prefix and a suffix. |
file | a character string. Indicates the path and name of the history file. |
... | additional arguments that could be passed to grep. Could be one or more of ignore.case, perl, fixed, useBytes and invert. |
history | returns invisible NULL. |
loadhistory | returns invisible NULL. |
savehistory | returns invisible NULL. |
timestamp | returns invisible NULL; however, if quiet = FALSE, timestamp returns stamp with a prefix and a suffix. |
# print the last 25 expressions history()# print the last 5 expressions history(max.show=5) # print all matched expressions history(Inf)
# print the last 25 expressions, in reverse chronological order history(reverse=TRUE)
# print the most recent expressions containing string "history" history(pattern="history")
# use "..." argument history(pattern = "HIST") history(pattern = "HIST", ignore.case = TRUE)
timestamp() timestamp(quiet = TRUE) timestamp(Sys.Date()) timestamp(stamp = 123, prefix = ">>>---", suffix = "---<<<") ## Not run: savehistory(".history") loadhistory(".history") ## End(Not run)