Re: [S] commenting multiple lines of commands

Douglas Bates (bates@stat.wisc.edu)
01 Jul 1998 10:27:53 -0500


Jean_Adams@usgs.gov (Jean Adams) writes:

> 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.

A not entirely frivolous suggestion is:

1) Learn emacs.
2) Install ESS (Emacs Speaks Statistics). (see http://ess.stat.wisc.edu/)
3) Put your code in an ESS buffer in S-mode.
4) Mark the region and use M-x comment-region.

If you only have to do 4) this could be considered a "quick way" :-)

Otherwise, you might do something mundane like enclosing the code you
wish to have skipped in

if (FALSE) {

}
-----------------------------------------------------------------------
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