[R] How to use multi paragraph comment like /* and */ in cpp?

PO SU rhelpmaillist at 163.com
Wed Sep 10 08:30:58 CEST 2014


Tks for all your help,  finally i choose the way in Rstudio ctrl+shift+C, and do twice to cancel those comments. It's enough for me now. BTW, I also like the way:
if(FALSE) {}   :) 



--

PO SU
mail: desolator88 at 163.com 
Majored in Statistics from SJTU




At 2014-09-10 02:15:49, "Gjalt-Jorn Peters" <gjalt-jorn at behaviorchange.eu> wrote:
>In R-studio, you can also select whatever you want to comment out, and 
>press CTRL-SHIFT-C to comment the selection in one go.
>To uncomment it all in one go again, you can select it again and press 
>CTRL-SHIFT-C again.
>
>Gjalt-Jorn
>
>On 2014-09-09 5:51, Pascal Oettli wrote:
>> A workaround is to escape the evaluation of the lines. For example:
>>
>> tt <- 0
>> while(tt > 0){
>>    cat('rr\n')
>> }
>>
>> Regards,
>> Pascal
>>
>> On Tue, Sep 9, 2014 at 11:49 AM, PO SU <rhelpmaillist at 163.com> wrote:
>>> Dear expeRts,
>>>     I find it's terrible  when  i want to comment multi paragraph (e.g.  a 30 lines function) , i have to comment each line with #,  is there any good way to do that ?
>>>     I investgate it, but found no easy way, may you help me ?
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>> PO SU
>>> mail: desolator88 at 163.com
>>> Majored in Statistics from SJTU
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.


More information about the R-help mailing list