When the cursor in the source editor is positioned at the end of a word, hitting space twice in a quick succession creates a dot (full stop). I am not sure if this is a bug of a feature, but I had to correct my code a few times because of the unexpected dot. I don't know what purpose this would serve in an R code editor.
This is how it happens. The cursor is positioned at the end of the line.
Hitting space twice quickly creates this
Using RStudio 2022.12.0 build 353 on MacBook Pro with Ventura 13.1.