Multiline Comment Workarounds?

后端 未结 10 1114
轮回少年
轮回少年 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 18:48

    I can think of two options. The first option is to use an editor that allows to block comment and uncomment (eg. Eclipse). The second option is to use an if statement. But that will only allow you to 'comment' correct R syntax. Hence a good editor is the prefered workaround.

    if(FALSE){
         #everything in this case is not executed
    
    }
    

提交回复
热议问题