[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    Re: [R] Random number generation
From:       Esmail Bonakdarian <esmail.js () gmail ! com>
Date:       2008-05-11 13:25:04
Message-ID: 4826F3B0.4050205 () gmail ! com
[Download RAW message or body]

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.

Thanks,
Esmail

ps: Ah, I seem Meta-; works as a toggle in emacs/ESS .. thanks for encouraging
     me to look at that some more.

______________________________________________
R-help@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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic