Re: [R] Random number generation

From: Esmail Bonakdarian <>
Date: Sun, 11 May 2008 09:25:04 -0400

Hello there,

Prof Brian Ripley wrote:
> On Sun, 11 May 2008, Esmail Bonakdarian wrote:

>> Stephan Kolassa wrote:
>>> Have you tried successively removing/commenting parts of the script 
>>> before the sample() command until the problem goes away? That way you 
>>> should be able to pinpoint the offending script command.
>> Hi,
>> This brings up a question I have .. is there a way to do *block* comments
>> with scripts? A la /* ... */ like it's done in Java or C/C++? Ie comment
>> more than just one line at a time.
>> From what I have read this is not possible in R (at least not easily), 
>> but
>> I am eager for someone to contradict me :-)

> if(FALSE) {
> ...
> }
> Any good editor can do block commenting, e.g. ESS.
> You didn't tell us what you read, but I have never seen this in a
> reputable source.

I don't remember the source as I was reading widely all over the place trying to get up to speed with R in a hurry (having found this group was one of the best sources).

What I read doesn't seem to be incorrect however (it may even have been an archived message here), the *language* itself does not seem to support block *comments*. Using conditional constructs, or an IDE/editor to achieve similar results is a work around - but not the same. I don't mean to nitpick, but as a computer scientist I see this as different :-)

I'll have to look at ESS though.


ps: Ah, I seem Meta-; works as a toggle in emacs/ESS .. thanks for encouraging

     me to look at that some more. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sun 11 May 2008 - 13:28:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 12 May 2008 - 17:30:40 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive