Skip to content
Prev 387136 / 398502 Next

readline in function call with space in prompt.

Hi Jeremie,
Try this:

test <- function() {
 a<-readline("selection: ")
 return(a)
}

If it starts working, it could be a difference in the way Windows R
handles text input. Both work okay for me on fedora linux.

Jim
On Tue, Feb 9, 2021 at 12:29 AM Jeremie Juste <jeremiejuste at gmail.com> wrote: