Re: [Rd] Wishlist- Windows Gui (PR#10589)
Dear Peter, Actually, "Edit -> Gui preferences" will already edit/generate an = Rprofile file, so mirror selection could be put there. I frankly find it simpler = on a single-user Windows system just to edit Rprofile.site. Best, John > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of Peter Dalgaard > Sent: January-18-08 5:40 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [Rd] Wishlist- Windows Gui (PR#10589) >=20 > [EMAIL PROTECTED] wrote: > > Dear Robert, > > > > Your wish is granted retroactively; just put > > > > options(repos=3Dc(CRAN=3D"http://probability.ca/cran";, > > CRANextra=3D"http://www.stats.ox.ac.uk/pub/RWin";)) > > > > in your Rprofile.site file, which lives in R's etc directory (or in > another > > appropriate startup file -- see ?Startup). Of course, you would > adjust CRAN > > to point to a CRAN mirror near you. > > > > BTW, this isn't really a bug report, is it? > > > It's an enhancement request. We do allow those. >=20 > The idea seems sound enough: Just have the mirror selection widget > offer > to store the selection - er- somewhere for later use. Point being of > course that people can never remeber what to write in which > configuration file in which directory. >=20 > One tricky issue is whether we want the GUI to edit the Rprofile > (probably not) or add yet another configuration file that would be > overridden (probably not) by or override (probably not either) the > hand-written Rprofile files >=20 > -p > > Regards, > > John > > > > > > John Fox, Professor > > Department of Sociology > > McMaster University > > Hamilton, Ontario, Canada L8S 4M4 > > 905-525-9140x23604 > > http://socserv.mcmaster.ca/jfox > > > > > > > >> -Original Message- > >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > >> project.org] On Behalf Of [EMAIL PROTECTED] > >> Sent: January-18-08 11:40 AM > >> To: [EMAIL PROTECTED] > >> Cc: [EMAIL PROTECTED] > >> Subject: [Rd] Wishlist- Windows Gui (PR#10589) > >> > >> Full_Name: Robert Baer > >> Version: 2.6.1 > >> OS: Windows XP > >> Submission from: (NULL) (198.209.172.95) > >> > >> > >> It would be wonderful if the CRAN mirror had an easy way to set a > >> "default CRAN > >> mirror". > >> > >> Current behavior is to have to choose a CRAN mirror the first time = a > >> package is > >> installed in a session. The closest mirror site is always the same > for > >> me, and > >> I wouldn't wish to change it unless it were to be unavailable for = an > >> extended > >> period of time. I expect I could set it in a configuration file > >> somewhere with > >> some study, but this is the type of thing that is much more easily > and > >> appropriately done through a GUI. > >> > >> __ > >> R-devel@r-project.org mailing list > >> https://stat.ethz.ch/mailman/listinfo/r-devel > >> > > > > __ > > R-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > >=20 >=20 > -- >O__ Peter Dalgaard =D8ster Farimagsgade 5, Entr.B > c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K > (*) \(*) -- University of Copenhagen Denmark Ph: (+45) > 35327918 > ~~ - ([EMAIL PROTECTED]) FAX: (+45) > 35327907 >=20 > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Wishlist- Windows Gui (PR#10589)
Dear Robert, Your wish is granted retroactively; just put options(repos=c(CRAN="http://probability.ca/cran";, CRANextra="http://www.stats.ox.ac.uk/pub/RWin";)) in your Rprofile.site file, which lives in R's etc directory (or in another appropriate startup file -- see ?Startup). Of course, you would adjust CRAN to point to a CRAN mirror near you. BTW, this isn't really a bug report, is it? Regards, John John Fox, Professor Department of Sociology McMaster University Hamilton, Ontario, Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of [EMAIL PROTECTED] > Sent: January-18-08 11:40 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: [Rd] Wishlist- Windows Gui (PR#10589) > > Full_Name: Robert Baer > Version: 2.6.1 > OS: Windows XP > Submission from: (NULL) (198.209.172.95) > > > It would be wonderful if the CRAN mirror had an easy way to set a > "default CRAN > mirror". > > Current behavior is to have to choose a CRAN mirror the first time a > package is > installed in a session. The closest mirror site is always the same for > me, and > I wouldn't wish to change it unless it were to be unavailable for an > extended > period of time. I expect I could set it in a configuration file > somewhere with > some study, but this is the type of thing that is much more easily and > appropriately done through a GUI. > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] argument order for Math2 group functions in R 2.6.x (PR#10681)
Dear Ben, If you take a look at the definition of signif() in R 2.6.1 and, e.g., in R 2.5.1 you'll see the source of the problem: R 2.6.1: > signif function (x, digits = 6) .Primitive("signif") R 2.5.1: > signif function (x, digits = 6) .Internal(signif(x, digits)) >From ?Primitive: "The advantage of .Primitive over .Internal functions is the potential efficiency of argument passing. However, this is done by ignoring argument names and using positional matching of arguments (unless arranged differently for specific primitives such as rep), so this is discouraged for functions of more than one argument." I guess that in recoding signif() for efficiency, the warning about multiple arguments was ignored. Regards, John On Sat, 2 Feb 2008 00:35:03 +0100 (CET) [EMAIL PROTECTED] wrote: > Full_Name: Ben Hansen > Version: 2.6.1 > OS: Windows > Submission from: (NULL) (66.93.3.101) > > > Hi, > > In R 2.6.0 or 2.6.1 on Windows, I get the following upon opening the > GUI (no > previous commands or special settings): > > signif(digits=4, x=1/3) > [1] 4 > > It seems to be taking 4 to be the "x" argument, the number to be > rounded. > However, my understanding (perhaps mistaken) was that it should > respond as > follows: > > signif(digits=4, x=1/3) > [1] 0. > > (This last is what I get from R 2.5.0 running on the same machine, > and what I'm > used to getting using earlier versions.) Similar things happen with > round(). > > I haven't yet had the opportunity to investigate whether I'd see the > same > behavior on other platforms. > > Best wishes, > Ben > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel John Fox, Professor Department of Sociology McMaster University Hamilton, Ontario, Canada http://socserv.mcmaster.ca/jfox/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] argument order for Math2 group functions in R 2.6.x (PR#10683)
Dear Brian, Are there many primitives that take more than one argument? I see, for example, that round() is another. Might it not be a good idea to provide a warning in the help file(s) that arguments must be supplied in the correct order? Regards, John > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of [EMAIL PROTECTED] > Sent: February-02-08 12:45 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [Rd] argument order for Math2 group functions in R 2.6.x > (PR#10683) > > signif() is primitive in 2.6.x, and so uses positional matching (almost > all primitives do). > > See the NEWS file for the announcement of the change. > > > On Sat, 2 Feb 2008, [EMAIL PROTECTED] wrote: > > > Full_Name: Ben Hansen > > Version: 2.6.1 > > OS: Windows > > Submission from: (NULL) (66.93.3.101) > > > > > > Hi, > > > > In R 2.6.0 or 2.6.1 on Windows, I get the following upon opening the > GUI (no > > previous commands or special settings): > >> signif(digits=4, x=1/3) > > [1] 4 > > > > It seems to be taking 4 to be the "x" argument, the number to be > rounded. > > However, my understanding (perhaps mistaken) was that it should > respond as > > follows: > >> signif(digits=4, x=1/3) > > [1] 0. > > > > (This last is what I get from R 2.5.0 running on the same machine, > and what I'm > > used to getting using earlier versions.) Similar things happen with > round(). > > > > I haven't yet had the opportunity to investigate whether I'd see the > same > > behavior on other platforms. > > > > Best wishes, > > Ben > > > > __ > > R-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > > > -- > Brian D. Ripley, [EMAIL PROTECTED] > 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, UKFax: +44 1865 272595 > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel