I do not think Rstudio (https://www.rstudio.com/) can freeze your mouse cursor, instead, it can be stacked if you are doing heavy-duty coding. Probably you might have pressed a button key on your keyboard that freezes the mouse cursor.
Solutions:
- Try to reboot your pc. If that works, then you are fine to go. If it does not go to number 2
- If you are working on your laptop, try to use an external mouse, if that works, then you are fine to go.
If these does not work, then go to take pizaa and coffee and sleep well.