I pasted what you have here into TI Connect, saved the file, and sent it to my calculator. It's treating R2 as the statistics variable, not R*R. Unfortunately, I can't find what the R2 variable is. It's not on the Stats page and I can't find another page referencing what it does.
In TIC there is an R2 token you can paste from the syntax reference and a separate token that is 2 by itself. Both superscripts are just ASCII 0xB2 so when TIC assembles the program it has no way of knowing if you meant the stats variable or R*R so it just assumes the former.
If you type this program out on your calculator, send it to your PC, open it TIC, save it without editing anything you will "corrupt" the program.
To fix this you should, use a variable besides R, type R^2 into TIC, or write code on the calculator. Okay maybe not the last one. ( ͡° ͜ʖ ͡°)