Have you tried scan()?: > y=scan() 1: 2 2: Read 1 item > y [1] 2 -- View this message in context: http://r.789695.n4.nabble.com/Supplying-function-inputs-interactively-tp2536003p2536004.html Sent from the R help mailing list archive at Nabble.com.