Is anyone else finding R coding in the Android app to be buggy? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Is anyone else finding R coding in the Android app to be buggy?

Sometimes, when I look at my code vs the "hint" code, they look identical, but my code doesn't pass the tests. If I change the layout of my code to emulate the exact position of linebreaks, etc. sometimes that's enough to "fix" it, e.g. in one exercise I moved ELSE to follow immediately after the closing curly brace of the IF statement, instead of having ELSE on a new line - suddenly my code passed! I think it's something to do with the way the Android app is doing spaces / indents / line breaks. There was another piece of code that I couldn't get to pass at all on the app, so I saved it and exited, then opened up SoloLearn in a web browser on my PC. When I opened the same activity, I could see line breaks in odd places, most importantly part way through setting a parameter, which would obviously cause problems. On the app, to be clear, there were NO line breaks in these locations! When I fixed the layout on the PC, it passed the tests just fine.

8th Apr 2023, 3:18 AM
Anthony Hasseldine
Anthony Hasseldine - avatar
4 Antworten
+ 4
Anthony Hasseldine , can you please link a code here that has given problems for you?
9th Apr 2023, 2:52 PM
Lothar
Lothar - avatar
+ 2
Lisa have you encountered such bug in the R playground? Anthony Hasseldine I don't write R but is there any way to consistently reproduce the bug? Does it occur in a specific lesson's test, or the code playground in general? What was your code that failed, and how did you rearrange it to make it work? Maybe it's a problem with syntax but it would be easy to determine from a concrete example.
8th Apr 2023, 5:08 AM
Tibor Santa
Tibor Santa - avatar
+ 1
No, I didn't encounter an issue. Can you try to reproduce the error and link the code bit?
8th Apr 2023, 6:14 AM
Lisa
Lisa - avatar
+ 1
could it be something in your keyboard or language settings that is using unrecognized or invisible characters?
8th Apr 2023, 3:14 PM
Bob_Li
Bob_Li - avatar