Multiline Comment Workarounds?

后端 未结 10 1118
轮回少年
轮回少年 2020-11-30 18:36

I (sort of) already know the answer to this question. But I figured it is one that gets asked so frequently on the R Users list, that there should be one solid good answer.

10条回答
  •  借酒劲吻你
    2020-11-30 19:00

    Apart from using the overkilled way to comment multi-line codes just by installing RStudio, you can use Notepad++ as it supports the syntax highlighting of R

    (Select multi-lines) -> Edit -> Comment/Uncomment -> Toggle Block Comment

    Note that you need to save the code as a .R source first (highlighted in red)

    Note that you need to save the code as a .R source first (highlighted in red)

提交回复
热议问题