Where can I create a bug report for RStudio? Reformatting the code is not working correctly

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


The code results 1.111111
Then press Ctrl-A, and then Ctrl-Shift-A to reformat the code.

This results in


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!

Hello, if you have a bug report or feature request to make for RStudio, the best place for it would be the GitHub repository.

1 Like

You're commenting out the closing parentheses. That is why it doesn't run. If you got rid of the commented bits, it reformats fine.

OK wow, this bug is already there and was first reported in 2019... So I guess there is no hope it will be fixed any time soon...

Try the styler package for styling in case that works better for you.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.