3

When I use C-M-\ (with emacs and ESS) to format my R code, it right justifies my comments. For example, it changes:

#This is a comment
x=5

to

                       #This is a comment
x=5

How do I stop my comments being right-justified?

csgillespie
  • 59,189
  • 14
  • 150
  • 185

1 Answers1

6

One solution is to use ##. By convention, that one doesn't move.

Dirk Eddelbuettel
  • 360,940
  • 56
  • 644
  • 725