Created
April 18, 2017 04:52
-
-
Save ngopal/26ec9046b6febc5ce95749e10ff738f2 to your computer and use it in GitHub Desktop.
How to write a REPL in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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