Re: [Rd] R crashes when setWinProgressBar is give a numeric value for label argument

2010-02-11 Thread Greg Snow
Rd] R crashes when setWinProgressBar is give a numeric > value for label argument > > Greg, > > winProgressBar() has internal checks for the argument types, and for > some unaccounted-for reason I omitted them in setWinProgressBar(). So > 2) is easy (cut-and-paste). > &g

Re: [Rd] R crashes when setWinProgressBar is give a numeric value for label argument

2010-02-11 Thread Prof Brian Ripley
Greg, winProgressBar() has internal checks for the argument types, and for some unaccounted-for reason I omitted them in setWinProgressBar(). So 2) is easy (cut-and-paste). I am less sure that we should add coercion, and sure that if we add it to setWinProgressBar() we should also add it to

[Rd] R crashes when setWinProgressBar is give a numeric value for label argument

2010-02-10 Thread Greg Snow
This problem can be seen by the following commands: > pb <- winProgressBar(max=1000, label='0') > b <- 1 > setWinProgressBar(pb, b, label=b) This set of commands (on windows of course, XP in this case) causes R to crash. This is not strictly a bug since the documentation states that the label a