From murdoch.duncan at gmail.com  Thu Nov 17 13:18:36 2011
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Thu, 17 Nov 2011 07:18:36 -0500
Subject: [Rd] strange behavior from cex="*"
In-Reply-To: <4EC4556E.4050507@gmail.com>
References: <4EC42D66.502@gmail.com>
	<1C6B85B4-9803-407B-83BB-19159CCB2778@gmail.com>
	<4EC4388A.6070502@gmail.com> <4EC4556E.4050507@gmail.com>
Message-ID: <4EC4FB9C.8000308@gmail.com>

On 11-11-16 7:29 PM, Duncan Murdoch wrote:
> On 11-11-16 5:26 PM, Ben Bolker wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 11-11-16 05:18 PM, peter dalgaard wrote:
>>>
>>> On Nov 16, 2011, at 22:38 , Ben Bolker wrote:
>>>
>>>>    Someone inquired on StackOverflow about apparently non-deterministic
>>>> graphics behaviour in R.  I noticed that they were using cex="*" and
>>>> discovered some potentially weird behavior.
>>>
>>> It can be reproduced much more simply (well, not the hang, but bad enough):
>>>
>>> In a plain R application console (OSX Snow Leopard),
>>>
>>> for (i in 1:100) plot(1:10,cex="*")
>>>
>>> will _sometimes_ show big circles, indicating random data being picked up.
>>>
>>> The "cex" is by definition numeric, so you can't expect to be able to pass a character string, but the code should check.
>>
>>    Looks (?) like the check could go in FixupCex (which already tests for
>> isReal, isInteger, and isLogical) in src/main/plot.c , unless there is a
>> wish to catch it earlier/in R code.
>
> Yes, that's where the check was missed.  I'll fix it.  The other
> parameters appear to have been checked properly.

Now fixed in R-devel and R-patched.

Duncan Murdoch



[Rd] strange behavior from cex="*"
Duncan Murdoch