0

What is an actual syntax of input funtion in R? is that readLine or readLines?

20th Oct 2021, 4:47 PM
Aravind Hegde
Aravind Hegde - avatar
5 odpowiedzi
+ 3
Okay, I think I can replicate the problem. When you want to get user input on your local R installation, use readline(). readLines reads a connection – that is how sololearn playground gets input. If you try it on your own computer, R gets trapped by itself which freezes or crashes R console
20th Oct 2021, 6:29 PM
Lisa
Lisa - avatar
+ 2
Input is covered in the sololearn R course. Check the lesson again or just try it on playground. Also, you can get the documentation with ?readLines
20th Oct 2021, 4:59 PM
Lisa
Lisa - avatar
+ 1
What does the error message say? Can you put your code in a script on playground?
20th Oct 2021, 5:57 PM
Lisa
Lisa - avatar
0
Yes, And that syntax is not running in Rstudio.It is showing Error..
20th Oct 2021, 5:32 PM
Aravind Hegde
Aravind Hegde - avatar
0
Yeah... That's what happened I think
20th Oct 2021, 6:30 PM
Aravind Hegde
Aravind Hegde - avatar