Re: [Rd] Bug in the example of function optim() (PR#8312)

From: <ripley_at_stats.ox.ac.uk>
Date: Tue 15 Nov 2005 - 16:47:25 GMT


  This message is in MIME format. The first part should be readable text,   while the remaining parts are likely unreadable without MIME-aware tools.

--27464147-1959301360-1132073234=:9778
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE

This is aleady fixed in the current versions of R, R-patched, and R-devel. See the posting guide or FAQ for how you can check such versions (and save your time and ours).

On Tue, 15 Nov 2005 wolfgang.lederer@stat.uni-muenchen.de wrote:

> Dear R-Team,
>
> there seems to be a minor bug in the example for optim(). In the
> travelling salseman part of the example section the lines
>
> text(x, y, names(eurodist), cex=3D0.8) (7th line from bottom)
>
> text(x, y, names(eurodist), cex=3D0.8) (last line)
>
> do not produce any oputput, because names(eurodist) has value "NULL". To
> get the intended output one has just to substitute names() by labels().
> So the correct line will be:
>
> text(x, y, labels(eurodist), cex=3D0.8) .
>
> Thanks for all your effort and the software you created.
>
> Greetings
>
> Wolfgang Lederer
>
> --please do not edit the information below--
>
> Version:
> platform =3D i386-pc-mingw32
> arch =3D i386
> os =3D mingw32
> system =3D i386, mingw32
> status =3D
> major =3D 2
> minor =3D 2.0
> year =3D 2005
> month =3D 10
> day =3D 06
> svn rev =3D 35749
> language =3D R
>
> Windows XP Professional (build 2600) Service Pack 2.0

>
> Locale:
> LC_COLLATE=3DGerman_Germany.1252;LC_CTYPE=3DGerman_Germany.1252;LC_MONETA=
RY=3DGerman_Germany.1252;LC_NUMERIC=3DC;LC_TIME=3DGerman_Germany.1252
>
> Search Path:
> .GlobalEnv, package:methods, package:stats, package:graphics,
> package:grDevices, package:utils, package:datasets, Autoloads, package:ba=
se
>
> --=20
> **************************************************
> Wolfgang Lederer
> Institut f=FCr Statistik
> Ludwig-Maximilians-Universit=E4t M=FCnchen
> Martius Str. 4
> D-80539 M=FCnchen
> Tel: +49 89 2180 4847
> Fax: +49 89 2180 5308
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

--=20

Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595
--27464147-1959301360-1132073234=:9778--

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Nov 16 04:00:21 2005

This archive was generated by hypermail 2.1.8 : Tue 15 Nov 2005 - 21:21:17 GMT