[R] Is there a construct for conditional comment?
Duncan Murdoch
murdoch at stats.uwo.ca
Wed Aug 19 00:27:26 CEST 2009
On 18/08/2009 5:54 PM, Peng Yu wrote:
> Hi,
>
> In C++, I can use the following construct to choice either of the two
> blocks the comment but not both. Depending on whether the number after
> "#if" is zero or not, the commented block can be chose. I'm wondering
> if such thing is possible in R?
No. The usual advice is to get a real editor that can comment a block
of lines all at once.
Duncan Murdoch
>
> #if 0
> commented with 0
> #else
> commented with 1
> #endif
>
> Regards,
> Peng
>
> ______________________________________________
> 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