Skip to content

Instantly share code, notes, and snippets.

@cszang
Created March 3, 2016 13:50
Show Gist options
  • Save cszang/66667d3beafdd7b9550e to your computer and use it in GitHub Desktop.
Save cszang/66667d3beafdd7b9550e to your computer and use it in GitHub Desktop.
source R dumpfile in win R session
rs <- function() {
dumpfile <- "~/.rdump"
dump <- readLines(dumpfile)
cat(paste0("---> ", dump[1], " ... ", tail(dump, 1), "\n"))
source(dumpfile, echo = TRUE)
system("rtobottom")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment