+ 2

Why isn't this code working at the playground?

https://code.sololearn.com/cWnksCESpj9F/?ref=app

25th Aug 2021, 5:36 PM
Paul
Paul - avatar
7 Réponses
+ 3
If you print num, you can see it is NA. What were you trying to do with readLines?
25th Aug 2021, 6:11 PM
Lisa
Lisa - avatar
+ 2
There is an R course now.
30th Aug 2021, 5:16 PM
Paul
Paul - avatar
+ 1
Where i got it, it reads a number.
25th Aug 2021, 7:10 PM
Paul
Paul - avatar
+ 1
Which number? Do you have a file or are you trying to get user input (from console)? For R, user input is currently not supported on sololearn playground.
25th Aug 2021, 7:13 PM
Lisa
Lisa - avatar
+ 1
Seems to work now :)
30th Aug 2021, 4:02 PM
Lisa
Lisa - avatar
0
It is a code coach. I only made the last four lines.
25th Aug 2021, 7:35 PM
Paul
Paul - avatar
0
I didn't know there was code coach for R... (could you link it please?)
25th Aug 2021, 7:43 PM
Lisa
Lisa - avatar