wolfgang.lederer@stat.uni-muenchen.de
2005-Nov-15 16:33 UTC
[Rd] Bug in the example of function optim() (PR#8312)
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=0.8) (7th line from bottom) text(x, y, names(eurodist), cex=0.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=0.8) . Thanks for all your effort and the software you created. Greetings Wolfgang Lederer --please do not edit the information below-- Version: platform = i386-pc-mingw32 arch = i386 os = mingw32 system = i386, mingw32 status major = 2 minor = 2.0 year = 2005 month = 10 day = 06 svn rev = 35749 language = R Windows XP Professional (build 2600) Service Pack 2.0 Locale: LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252 Search Path: .GlobalEnv, package:methods, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, Autoloads, package:base -- ************************************************** Wolfgang Lederer Institut f?r Statistik Ludwig-Maximilians-Universit?t M?nchen Martius Str. 4 D-80539 M?nchen Tel: +49 89 2180 4847 Fax: +49 89 2180 5308
ripley@stats.ox.ac.uk
2005-Nov-15 16:47 UTC
[Rd] Bug in the example of function optim() (PR#8312)
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 at 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_MONETARY=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:base > > --=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 at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >--=20 Brian D. Ripley, ripley at 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--