s-news
[Top] [All Lists]

Re: Unexpected behavior of !

To: Dennis Fisher <fisher@plessthan.com>
Subject: Re: Unexpected behavior of !
From: Patrick Burns <pburns@pburns.seanet.com>
Date: Sat, 19 Jul 2008 15:58:25 +0100
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <EB9263DB-E292-4538-9CC0-938988FF1963@plessthan.com>
References: <EB9263DB-E292-4538-9CC0-938988FF1963@plessthan.com>
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
If '!' is the first character in an S-PLUS command
(but not R), then the rest of the command is sent
to the operating system.


Patrick Burns
patrick@burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")

Dennis Fisher wrote:
Colleagues:

In S-Plus 8.0.4 (Linux), the command:
!is.R()
yields the following response:
Badly placed ()'s.

If I enter:
{ !is.R() }

I get the desired response:

[1] T


If I enter:

is.R()

I also get the desired response:

[1] F


Can anyone explain why I need {} ?

Dennis



Dennis Fisher MD

P < (The "P Less Than" Company)

Phone: 1-866-PLessThan (1-866-753-7784)

Fax: 1-415-564-2220

www.PLessThan.com <http://www.PLessThan.com>



<Prev in Thread] Current Thread [Next in Thread>