I am trying to write an interactive R script. For example:
try.R:
print(\"Entr some numbers. >\",quote=F) a = scan(what=double(0)) print a q()
What worked for me on Windows with RStudio 0.98.945 and R version 3.1.1 was:
cat("What's your name? ") x <- readLines(con=stdin(),1) print(x)