Skip to content

Instantly share code, notes, and snippets.

@ngopal
Created April 18, 2017 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngopal/26ec9046b6febc5ce95749e10ff738f2 to your computer and use it in GitHub Desktop.
Save ngopal/26ec9046b6febc5ce95749e10ff738f2 to your computer and use it in GitHub Desktop.
How to write a REPL in R
REPL <- function() {
while(T) {
print(eval(parse(text=readline("NG>>"))))
}
}
REPL()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment