Re: [S] commenting multiple lines of commands

Matt Calder (calder@stat.colostate.edu)
Wed, 1 Jul 1998 10:06:44 -0600 (MDT)


Jean,
Try this,

A <- function()
{
a <- DoSomething()
b <- DoSomethingElse()
# Don't do these, remove if to do.
if (F) {
c <- DoSomethingElse()
d <- DoSomethingElse()
.
.
.
z <- DoSomethingElse()
}
return(0)
}


Matt

On Wed, 1 Jul 1998, Jean Adams wrote:

>
> Is there a quick way to comment out multiple lines of commands in
> S-PLUS code without inserting a pound sign "#" before every line?
>
> I am using S-PLUS 4.5 Professional Release 1 with Windows 95.
>
> JVA
>
> Jean V. Adams U.S. Geological Survey
> e-mail: jean_adams@usgs.gov Great Lakes Science Center
> phone: (734) 214-9307 1451 Green Road
> FAX: 734-994-8780 Ann Arbor, MI 48105-2899 USA
> -----------------------------------------------------------------------
> This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
> send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
> message: unsubscribe s-news
>

/*****************************************/
/* Matt Calder, Dept. of Statistics, CSU */
/* http://www.stat.colostate.edu/~calder */
/*****************************************/

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news