Re: [Rd] R 2.1 dies when some text() arguments are NULL (PR#7477)

2005-01-06 Thread MSchwartz
On Fri, 2005-01-07 at 04:44 +0100, [EMAIL PROTECTED] wrote:
> 
> [My very deepest apologies in advance if this is not plain text; I am 
> recently at a new job in a windows-based environment and have 
> not yet set up my favorite old (pine) system. I have tried my best to 
> strip all formatting from the message..]
> 
> I'm overlaying plots of tree locations mapped before and after 
> logging activities and checking my matched individuals using 
> several arguments to text() which plot tree attributes by or 
> near their (x,y) locations. R 2.1 dies when a coding error on 
> my part results in a null data.frame...
> 
> Example: 
> 
> plot(1)
> text(NULL ~ NULL, label=NULL)
> 
> This happens for me under Windows 98 and XP. Andrew Robinson 
> was kind enough to try it for me on FreeBSD with the same result. 
> The code returns nothing for me under R 1.9 on Windows 98 and 
> XP (same win. machines).  The version details of the three 
> are as follows:
> 
> # FreeBSD:
> 
> >version
>  _  
> platform i386-portbld-freebsd5.3
> arch i386   
> os   freebsd5.3 
> system   i386, freebsd5.3   
> status  
> major2  
> minor0.1
> year 2004   
> month11 
> day  15 
> language R  
> 
> # Windows XP:
> 
> > version
>  _  
> platform i386-pc-mingw32
> arch i386   
> os   mingw32
> system   i386, mingw32  
> status  
> major2  
> minor0.1
> year 2004   
> month11 
> day  15 
> language R   
> 
> # Windows 98:
> 
> > version
>  _  
> platform i386-pc-mingw32
> arch i386   
> os   mingw32
> system   i386, mingw32  
> status  
> major2  
> minor0.1
> year 2004   
> month11 
> day  15 
> language R   
> 
> Please let me know if I can add any more details-
> 
> Thank you,
> 
> Rob 

Your subject line and body refer to R version 2.1, which technically
does not exist as 2.1.0 is the current development version. 

However, your output above indicates that R version 2.0.1 is what you
have installed on the three platforms. That is the current released
version.

In either case, using:

Version 2.0.1 Patched (2005-01-02)

I get the following:

> plot(1)
> text(NULL ~ NULL, label=NULL)
Error in text(xy.coords(x, y, recycle = TRUE), labels, adj, pos,
offset,  :
no coordinates were supplied


Same thing with:

> plot(1)
> text(NULL, NULL, label = NULL)
Error in text.default(NULL, NULL, label = NULL) :
x and y lengths differ in text().


No crash.


There is the following note in the NEWS file for 2.0.1 patched:

"text()'s default method could segfault if passed 0-length coordinates."

So I believe that this fixes the issue that you have posted about.


A patched version for Windows is available via CRAN:

http://www.cran.mirrors.pair.com/bin/windows/base/rpatched.html

and a source code tarball is available for the *nix versions via the FTP
link under the R Sources link:

ftp://ftp.stat.math.ethz.ch/Software/R/

HTH,

Marc Schwartz

__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] R 2.1 dies when some text() arguments are NULL (PR#7477)

2005-01-06 Thread Robert_Keefe


[My very deepest apologies in advance if this is not plain text; I am 
recently at a new job in a windows-based environment and have 
not yet set up my favorite old (pine) system. I have tried my best to 
strip all formatting from the message..]

I'm overlaying plots of tree locations mapped before and after 
logging activities and checking my matched individuals using 
several arguments to text() which plot tree attributes by or 
near their (x,y) locations. R 2.1 dies when a coding error on 
my part results in a null data.frame...

Example: 

plot(1)
text(NULL ~ NULL, label=NULL)

This happens for me under Windows 98 and XP. Andrew Robinson 
was kind enough to try it for me on FreeBSD with the same result. 
The code returns nothing for me under R 1.9 on Windows 98 and 
XP (same win. machines).  The version details of the three 
are as follows:

# FreeBSD:

>version
 _  
platform i386-portbld-freebsd5.3
arch i386   
os   freebsd5.3 
system   i386, freebsd5.3   
status  
major2  
minor0.1
year 2004   
month11 
day  15 
language R  

# Windows XP:

> version
 _  
platform i386-pc-mingw32
arch i386   
os   mingw32
system   i386, mingw32  
status  
major2  
minor0.1
year 2004   
month11 
day  15 
language R   

# Windows 98:

> version
 _  
platform i386-pc-mingw32
arch i386   
os   mingw32
system   i386, mingw32  
status  
major2  
minor0.1
year 2004   
month11 
day  15 
language R   

Please let me know if I can add any more details-

Thank you,

Rob 

_

Rob Keefe

Cooperative Forestry Research Unit
University of Maine

__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Standalone Mathlib, C++ and ISNAN()

2005-01-06 Thread Bill Northcott
On 06/01/2005, at 10:16 PM, Martyn Plummer wrote:
I think the workaround is supposed to look like this:
#define _GLIBCPP_USE_C99 1
#include 
#undef _GLIBCPP_USE_C99
#include 
using __gnu_cxx::isnan;
I thought I had tried that, but I was not sure.  So I tried again this 
morming, and it definitely does not work on MacOS X.  The problem being 
that the undefs in cmath are unconditional.

I presume it works on Linux because isnan is a function.
Bill Northcott
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] donnette St0ckMogul Newsletter VCSC stricture

2005-01-06 Thread donnette Woloshko
Woloshko,

VCSC-Get it immediately - in next week there
will be major promotions and it is expected to
have high gains immediately over the next 10 days
with massive promotions via fax starting wednesday
evening throughout the week and weekend. This stock
is Hot and is our number one pick for first quarter
of 2005.

Breaking NEWS: (VCSC)Vocalscape Announces License
Agreement and Partnership with Netfone Services Inc.

Huge News For:VCSC..this issue will explode in next
2-5 days - big PR campaign underway

Watch out for it . Jump on board ..  Stock expected
to hit two dollars by the end of the month!

Projected price in 3-5 days: 0.75 - 0.96
Projected price in 10-20 days : 2.00

MicroCap Marketing PLAY OF THE MONTH for our
investors is Vocalscape, Inc.

VCSC*HUGE NEWS released:

Vocalscape, Inc. is an emerging developer of interactive
communication software. The Company has created software
and interactive solutions revolving around global
communications and Data Voice Convergence. Vocalscape
focuses on adding to customer's website and customer
support centers by integrating website solutions that
enable real human assistance, live interaction services
such as instant messaging, voice over the Internet
(VoIP) and interactive desktop solutions sharing
solutions.

As previously announced on August 20, 2004 Vocalscape
has executed a Letter of Intent to Acquire 100% of
NTELX, Inc.   The company has created software and
interactive solutions revolving around global
communications and DATA & VOICE convergence. Our
strategy is to focus on VoIP communication solutions
that bring a full range of communications software,
and services together to solve business problems
and add value to our customers.

According to Infonetics Research's quarterly market
share and forecast service, Next Gen Voice Products,
worldwide next generation voice product revenue totaled
389m in 2Q 2004, up 10 percent from 1Q 2004 and up 21
percent year-over-year. Annual revenue is projected
to grow from $1.3b in 2003 to $4.8b in 2007.

NEWS ALERT:

KATONAH, N.Y., Jan. 3 /PRNewswire-FirstCall/ -
Vocalscape Inc.(TM) (VCSC), announces
the company has entered into a licensing agreement
with Netfone Services Inc. to license Vocalscape's
proprietary Eyefon, an award winning VoIP soft phone
and Vocalscape's pre-paid calling card cluster solution.


*Don't Wait Get VCSC_Today, Great Profits This Week*


Please be advised that nothing within this email shall
cons titute a soli citation or an invi tation to get p osition
in or se ll an y se, curity ment ioned herein. This newsletter
is neither a registered investment advisor nor affiliated
with any bro ker or de, aler. All sta tements ma de are our
exp ress opinion only and sh ould be trea ted as such. We
may o wn, take po sition and se ll any secu rities men tioned
at any time. This report inc ludes for ward look ing
stat ements within the mea ning of The Pri vate Se curities
Litig ation Refo rm Act of 19 95. These stat ements may
incl ude t erms as e xpect, bel ieve, may, w ill,
mov e, underv alued and int end or similar te rms. 
This news letter wa s pa id 11 300 f rom third par ty to
s end thi s rep ort. sunfish

krakow theirs

__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Broken Link for gregmisc_2.0.0.zip

2005-01-06 Thread Duncan Murdoch
On Thu, 6 Jan 2005 13:06:51 +0100, [EMAIL PROTECTED] wrote
>
>Not really ... we had the webmaster address on almost all pages of
>CRAN until 2 or 3 years ago. I removed it deliberately from most
>places because way too many people confused it with r-help.

How about a "Contact Us" link on each page, which goes to a page that
lists the various possible contact addresses, with r-help first?  We
wouldn't want to put in the r-help submission address there; it should
be a link to  or
some other page that tells people what to expect, and lets them search
the archives.

Duncan Murdoch

__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


RE: [Rd] Broken Link for gregmisc_2.0.0.zip

2005-01-06 Thread Warnes, Gregory R


> Sorry, my fault. I included the index building in a cron job and that
> was broken. Should work now.
> 

Seems to work now.


>   > Uwe
> 
>   >> 
>   >>> Also, could the appropriate email address for reporting 
> web site problems
>   >>> please be added to the website in some conspicous place?
>   >> 
>   >> 
>   >> Good idea.
>   >> 
> 
> Not really ... we had the webmaster address on almost all pages of
> CRAN until 2 or 3 years ago. I removed it deliberately from most
> places because way too many people confused it with r-help.
> 
> And I doubt that people like Greg really have problems finding out how
> to contact Kurt or me ;-)
> 

The broken link was reported to my by users, who weren't really savvy, and
they would be unlikely to know..


> Best.
> Fritz
> 


LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}

__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Broken Link for gregmisc_2.0.0.zip

2005-01-06 Thread Friedrich . Leisch
> On Thu, 06 Jan 2005 08:50:44 +0100,
> Uwe Ligges (UL) wrote:

  > Peter Dalgaard wrote:
  >> "Warnes, Gregory R" <[EMAIL PROTECTED]> writes:
  >> 
  >> 
  >>> The link from
  >>> http://cran.r-project.org/src/contrib/Descriptions/gregmisc.html to the
  >>> windows package  gregmisc_2.0.0.zip is broken.  
  >> 
  >> 
  >> Looks like a generic errors in mirroring the windows packages. Has
  >> happened before.

  > Not quite, Windows packages are mirrored correctly, but all (?) links to 
  > Windows *and* Mac OS X binary packages in the packages' Descriptions on 
  > CRAN are broken.

Sorry, my fault. I included the index building in a cron job and that
was broken. Should work now.

  > Uwe

  >> 
  >>> Also, could the appropriate email address for reporting web site problems
  >>> please be added to the website in some conspicous place?
  >> 
  >> 
  >> Good idea.
  >> 

Not really ... we had the webmaster address on almost all pages of
CRAN until 2 or 3 years ago. I removed it deliberately from most
places because way too many people confused it with r-help.

And I doubt that people like Greg really have problems finding out how
to contact Kurt or me ;-)

Best.
Fritz

__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Standalone Mathlib, C++ and ISNAN()

2005-01-06 Thread Martyn Plummer
On Thu, 2005-01-06 at 08:29 +1100, Bill Northcott wrote:
> On 06/01/2005, at 6:53 AM, Thomas Lumley wrote:
> >
> > I believe (with a little Googling) the suggested C++ approach is to 
> > use std::isnan if  is included.
> >
> I tried that too, but without any success.  I even tried 
> __gnu_cxx::isnan.
> 
> It was suggested by one of the gcc people, but I could find no 
> documentation about it.  The ISO C++ docs do not include isnan as a 
> symbol provided by cmath within the std namespace.  I looked at the gcc 
> source code and could see no reason why it should work.

I think the workaround is supposed to look like this:

#define _GLIBCPP_USE_C99 1
#include 
#undef _GLIBCPP_USE_C99
#include 

using __gnu_cxx::isnan;

I don't know whether this solves the problem on MacOs X but it is valid
on Linux.  But do you really want to write code that is specific to gcc?
I don't.

Martyn

__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Standalone Mathlib, C++ and ISNAN()

2005-01-06 Thread Bill Northcott
On 06/01/2005, at 3:31 PM, John W. Eaton wrote:
What I finally decided to do for Octave was to use a C language
autoconf test for isnan, then provide a function declared "extern C"
that is a wrapper around the C isnan function (if it exists).  I also
use this method for other functions that may be easier to call from C
than directly from C++.
Thanks for confirming my suspicions.
As far as I can see that is just what R has done with the R_IsNaN 
function.  I am just asking that it be included in the standalone Rmath 
library.

Bill Northcott
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] install.packages and bundles

2005-01-06 Thread Uwe Ligges
Warnes, Gregory R wrote:
Hi All,
Since I changed the gregmisc package into a bundle, I almost daily questions
asking how to get the individual packages contained in the bundle.  

The standard example arises when someone attempts to install and then use my
'genetics' package which depends on the 'gdata' package contained within the
'gregmisc' bundle.  The install succedes, but when the user does
library(genetics) they get the error message:
	> library(genetics)
	Loading required package: gdata 
	Error: package 'gdata' could not be loaded

The user then attempts to install the package 'gdata' not realizing that it
is part of the (e.g.) gregmisc bundle, and can't find it.  For example
> install.packages("gdata")
trying URL
`http://cran.r-project.org/bin/windows/contrib/2.0/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 24149 bytes
opened URL
downloaded 23Kb
	Warning message: 
	No package "gdata" on CRAN. in: download.packages(pkgs, destdir =
tmpd, 
	available = available,  

Now the user is in trouble and sends me an error message asking how to get
the 'gdata' package.
A couple of minor changes to the package installation/listing tools would
help alleviate this and some related problems.
1) Modify install.packages() so that the by default "dependencies=TRUE",
since this knows how to find dependencies within bundles.  
	(Why is this FALSE by default anyway?  In normal circumstances, is
there any
 reason to install a package without installing its
dependencies?)

2) Modify install.packages() to check if a requested package is contained in
a bundle, and install the bundle if so.
This is already done, at least in R-2.0.1 if "dependencies" is set to 
"TRUE".


3) Modify CRAN.packages() to list packages contained within bundles as well
as independent packages, so that the windows "install packages from CRAN"
menu item will properly show bundled packages.
You already get the packages in bundles in the "Contains" column with
  CRAN.packages()[,"Contains"]
Uwe

Comments?
Gregory R. Warnes
Associate Director, Non-Clinical Statistics
Pfizer Global Research and Development

LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel