tord.snall@ebc.uu.se
2003-Oct-20 18:49 UTC
[Rd] warning from return() in 1.8 but not in 1.7.0 (PR#4687)
To whom it may concern, I get the following message when I run my function: Warning message: multi-argument returns are deprecated in: return(call.fn, repl, time, from, to, last.year, occup.m, ant.occ.m,> versionplatform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 8.0 year 2003 month 10 day 08 language R Win XP The whole return call is: return(call.fn, repl, time, from, to, last.year, occup.m, ant.occ.m, ant.tree.m, mean.tree.dbh.m, mean.tree.age.m) If I reduce the call to return(call.fn, repl) I still gett the error, but if I I reduce to return(call.fn) or return(repl) it works fine. The whole long return call works fine with the version I worked with until today: platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 7.0 year 2003 month 04 day 16 language R Win XP I have read CHANGES and can't find changes about return(). Thanks for letting me know what can be wrong. Sincerely, Tord ----------------------------------------------------------------------- Tord Snäll Avd. f växtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villavägen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46 18 471 28 82) (work) Tel: 018-25 71 33 (int +46 18 25 71 33) (home) Fax: 018-55 34 19 (int +46 18 55 34 19) (work) E-mail: Tord.Snall@ebc.uu.se Check this: http://www.vaxtbio.uu.se/resfold/snall.htm!
ligges@statistik.uni-dortmund.de
2003-Oct-20 18:58 UTC
[Rd] warning from return() in 1.8 but not in 1.7.0 (PR#4687)
tord.snall@ebc.uu.se wrote:> To whom it may concern, > I get the following message when I run my function: > > Warning message: > multi-argument returns are deprecated in: return(call.fn, repl, time, from, > to, last.year, occup.m, ant.occ.m, > > >>version > > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 1 > minor 8.0 > year 2003 > month 10 > day 08 > language R > Win XP > > The whole return call is: > return(call.fn, repl, time, from, to, last.year, occup.m, ant.occ.m, > ant.tree.m, mean.tree.dbh.m, mean.tree.age.m) > > If I reduce the call to > return(call.fn, repl) > I still gett the error, but if I I reduce to > return(call.fn) or return(repl) > it works fine. > > The whole long return call works fine with the version I worked with until > today: > > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 1 > minor 7.0 > year 2003 > month 04 > day 16 > language R > Win XP > > I have read CHANGES and can't find changes about return(). >Not a bug. Please read the NEWS and find that multiple arguments are deprecated. Uwe Ligges> Thanks for letting me know what can be wrong. > > > Sincerely, > Tord > > ----------------------------------------------------------------------- > Tord Sn?ll > Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet > Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University > Villav?gen 14 > SE-752 36 Uppsala, Sweden > Tel: 018-471 28 82 (int +46 18 471 28 82) (work) > Tel: 018-25 71 33 (int +46 18 25 71 33) (home) > Fax: 018-55 34 19 (int +46 18 55 34 19) (work) > E-mail: Tord.Snall@ebc.uu.se > Check this: http://www.vaxtbio.uu.se/resfold/snall.htm! > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
Thomas Lumley
2003-Oct-20 20:06 UTC
[Rd] warning from return() in 1.8 but not in 1.7.0 (PR#4687)
On Mon, 20 Oct 2003 tord.snall@ebc.uu.se wrote:> To whom it may concern, > > I get the following message when I run my function: > > Warning message: > multi-argument returns are deprecated in: return(call.fn, repl, time, from, > to, last.year, occup.m, ant.occ.m, >For each version of R there is a list of the most important changes in R for package developers at http://developer.r-project.org, usually with advice on what changes you have to make in your code. The third of ten items in the list for 1.8.0 is 3) Multi-argument returns are deprecated. Use a named list, e.g. replace return(pred, se) by return(list(pred=pred, se=se)) This is easier than reading through the NEWS file. -thomas
Duncan Murdoch
2003-Oct-21 01:57 UTC
[Rd] warning from return() in 1.8 but not in 1.7.0 (PR#4687)
On Mon, 20 Oct 2003 18:50:22 +0200 (MET DST), you wrote:>I have read CHANGES and can't find changes about return().CHANGES is the list of Windows-specific changes. It says this right at the top (and says that NEWS is for other versions), but maybe the names should be rationalized. The Mac-specific changes are in the main NEWS file, but there are less of those than of Windows-specific changes, so it makes sense that Windows keeps its changes separate. Should I rename CHANGES to NEWS_Win or something similar in the next release? Duncan Murdoch
Tord Snall
2003-Oct-21 11:48 UTC
[Rd] warning from return() in 1.8 but not in 1.7.0 (PR#4687)
Dear Duncan, At 19:58 2003-10-20 -0400, you wrote:>On Mon, 20 Oct 2003 18:50:22 +0200 (MET DST), you wrote: > > >>I have read CHANGES and can't find changes about return(). > >CHANGES is the list of Windows-specific changes. It says this right >at the top (and says that NEWS is for other versions), but maybe the >names should be rationalized. > >The Mac-specific changes are in the main NEWS file, but there are less >of those than of Windows-specific changes, so it makes sense that >Windows keeps its changes separate. > >Should I rename CHANGES to NEWS_Win or something similar in the next >release?As a user, I would prefer only having to look in one place for the information. A suggestion is one file with all changes listed under different subtitles, Mac-specific changes, Win-specific changes etc. Sincerely, Tord> >Duncan Murdoch >----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46 18 471 28 82) (work) Tel: 018-25 71 33 (int +46 18 25 71 33) (home) Fax: 018-55 34 19 (int +46 18 55 34 19) (work) E-mail: Tord.Snall@ebc.uu.se Check this: http://www.vaxtbio.uu.se/resfold/snall.htm!