Hi, I am relatively new so probably I am not the first one to notice the bug, but somehow I was not able to find a place where somebody has reported this bug or even any site to put a bug report for RStudio to start with if I am honest. So I hope this is the correct place for my issue.
Steps to reproduce the bug:
Open a new R-file in RStudio and enter
sum(c(.123456789,
.987654321#,
#.555555555
)
)
The code results 1.111111
Then press Ctrl-A, and then Ctrl-Shift-A to reformat the code.
This results in
sum(c(.123456789,
.987654321#,
#.555555555))
Now my code does not run anymore.
Expected result: I do not care what are the aesthetics of RStudio, but the code should still run after formatting it!
This behaviour also happens on my other machine, I give you some details of my RStudio:
RStudio 2022.12.0+353 "Elsbeth Geranium" Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36
It feels very bad not to be able to use code reformatting without having to worry that everything breaks, so I hope this gets fixed as soon as possible. So I hope here is the correct place to do so. If not, please let me know!