In R, you make comments by using #.
I'm using Windows 8 on a MacBook Pro, so the keyboard doesn't have a designated # key, and the shortcut for an Apple keyboard for the # key (which is Alt+3) doesn't work.
On an Apple Keyboard, whilst using a third-party OS such as Windows, you type the # symbol by pressing the 2nd Alt key + 3.
The first (left hand side) Alt key doesn't have a shortcut function.
This applies to all programs (Visual Studio, R, Word etc).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With