[Rd] bug in color handling in lattice (PR#7777)
# Your mailer is set to "none" (default on Windows), # hence we cannot send the bug report directly from R. # Please copy the bug report (after finishing it) to # your favorite email program and send it to # # [EMAIL PROTECTED] # ## ## open a new trellis.device trellis.device() ## works normally xyplot(rnorm(10) ~ I(1:10), panel=function(...) { panel.axis(side="b") }) ## invalid color name xyplot(rnorm(10) ~ I(1:10), panel=function(...) { panel.axis(side="b", line.col="invisible") }) ## repeat of previously working example. ## still an invalid color name. ## It is necesary to dev.off() in order to continue. xyplot(rnorm(10) ~ I(1:10), panel=function(...) { panel.axis(side="b") }) > search() [1] ".GlobalEnv""package:methods" "package:stats" [4] "package:graphics" "package:grDevices" "package:utils" [7] "package:datasets" "Autoloads" "package:base" > ls() [1] "last.warning" > ## open a new trellis.device > trellis.device() Error: couldn't find function "trellis.device" > > library(lattice) > ## open a new trellis.device > trellis.device() > > ## works normally > xyplot(rnorm(10) ~ I(1:10), panel=function(...) { + panel.axis(side="b") + }) > > ## invalid color name > xyplot(rnorm(10) ~ I(1:10), panel=function(...) { + panel.axis(side="b", line.col="invisible") + }) Error in grid.Call.graphics("L_segments", x$x0, x$y0, x$x1, x$y1) : invalid color name > > ## repeat of previously working example. > ## still an invalid color name. > ## It is necesary to dev.off() in order to continue. > xyplot(rnorm(10) ~ I(1:10), panel=function(...) { + panel.axis(side="b") + }) Error in grid.newpage() : invalid color name > --please do not edit the information below-- Version: platform = i386-pc-mingw32 arch = i386 os = mingw32 system = i386, mingw32 status = major = 2 minor = 0.1 year = 2004 month = 11 day = 15 language = R Windows XP Home Edition (build 2600) Service Pack 2.0 Search Path: .GlobalEnv, package:lattice, package:methods, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, Autoloads, package:base __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] axis.Date problem, bug(?)
Gavin Simpson wrote: Dear List, I have the following problem with axis.Date, here is an artificial example: dates <- scan(what = "character") "25/03/2000" "26/03/2000" "27/03/2000" "28/03/2000" "29/03/2000" "30/03/2000" "31/03/2000" "01/04/2000" "02/04/2000" "03/04/2000" "04/04/2000" "05/04/2000" dates <- as.Date(as.character(dates), format = "%d/%m/%Y") vals <- rnorm(12) plot(x = dates, y = vals, axes = FALSE) axis(side = 2) box() axis.Date(side = 1, x = dates, labels = "") Error in axis(side, at = z, labels = labels, ...) : formal argument "labels" matched by multiple actual arguments Which arises because axis.Date has this in the function: axis.Date function (side, x, at, format, ...) { ... labels <- format.Date(z, format = format) axis(side, at = z, labels = labels, ...) invisible() } Sorry, forgot the all important: version _ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status beta major2 minor1.0 year 2005 month04 day 06 language R -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way[W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] axis.Date problem, bug(?)
Dear List, I have the following problem with axis.Date, here is an artificial example: dates <- scan(what = "character") "25/03/2000" "26/03/2000" "27/03/2000" "28/03/2000" "29/03/2000" "30/03/2000" "31/03/2000" "01/04/2000" "02/04/2000" "03/04/2000" "04/04/2000" "05/04/2000" dates <- as.Date(as.character(dates), format = "%d/%m/%Y") vals <- rnorm(12) plot(x = dates, y = vals, axes = FALSE) axis(side = 2) box() axis.Date(side = 1, x = dates, labels = "") Error in axis(side, at = z, labels = labels, ...) : formal argument "labels" matched by multiple actual arguments Which arises because axis.Date has this in the function: axis.Date function (side, x, at, format, ...) { ... labels <- format.Date(z, format = format) axis(side, at = z, labels = labels, ...) invisible() } Commenting out the labels <- format... allows labels to be passed. I guess there should be something checking if labels is in ... and if it is don't generate new labels, and then don't pass this along in the ... to axis, but I haven't got as far as working out how to use dots() properly so I can't contribute a patch - yet, bit more reading and experimenting to do... - or decide if this is the way things should be done. What I want to do is is have, following my example, the days plotted with ticks and labeled as they are, but I also want ticks for say the hours, plotted with smaller tick marks and un-labeled. I've worked out how to do this for my actual application (where the years are labeled but I want months within years as unlabeled, little ticks) but I can't suppress the labellings when using a second call to axis.Date. Maybe this is the wrong way of doing things? If anyone has a better idea then I'd been keen to learn. For now I've hacked my own my.axis.Date for my purposes that works. Thanks for your time, Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way[W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] make error in R devel
Prof Brian Ripley wrote: What you are doing is not building the recommended packages. We not guarantee that the examples will work if you do not. (I was aware this would happen but have not yet put in a workaround.) *WHY* are you not building the recommended packages? Because I have a single library of packages and this is a throw back to when I used the Fedora R rpm and had to be root to update the packages (I was new to Linux - what can I say) - so it was easier to not have the packages in the default library and install them into my own library in ~/ There's no reason not to do this now of course I'm just stuck in my ways :-) I only wanted to use devel now because I wanted to check whether a problem I was having with axis.Date was still present in the devel tree before emailing the list about it. I'll build the recommended packages and try again. Thanks for the prompt reply. G -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way[W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] make error in R devel
If you get the R source via svn, then you need to run tools/rsync- recommended to get the recommended packages. If you download the tarball from CRAN then these are already included. Martyn On Wed, 2005-04-06 at 15:42 +0100, Gavin Simpson wrote: > Dear list, > > I just hit an error that stopped my make && make check-devel operation > on my linux box (FC3, i686 P4 2GB RAM). Just to note that I've been > building the development branch(?) for some time and this is the first > hint of a problem. > > 1) updated the src tree using svn update > 2) ran ../configure --with-recommended-package=no from my build directory > 3) got: > R is now configured for i686-pc-linux-gnu > >Source directory: ../src >Installation directory:/usr/local > >C compiler:gcc -O3 -g -march=i386 -mcpu=i686 >C++ compiler: g++ -O3 -g -march=i386 -mcpu=i686 >Fortran compiler: g77 -O3 -g -march=i386 -mcpu=i686 > >Interfaces supported: X11, tcltk >External libraries:readline, BLAS(generic) >Additional capabilities: PNG, JPEG, iconv, MBCS, NLS >Options enabled: R profiling > >Recommended packages: no > > Note I've editted config.site to compile with optimisations -O3 > 4) did make && make check-devel and get this: > ... > make[5]: Entering directory `/home/gavin/R/devel/build/src/library' > >>> Building/Updating help pages for package 'graphics' > Formats: text html latex example > make[5]: Leaving directory `/home/gavin/R/devel/build/src/library' > running code in 'graphics-Ex.R' ... OK > collecting examples for package 'stats' ... > make[5]: Entering directory `/home/gavin/R/devel/build/src/library' > >>> Building/Updating help pages for package 'stats' > Formats: text html latex example > make[5]: Leaving directory `/home/gavin/R/devel/build/src/library' > running code in 'stats-Ex.R' ...make[4]: *** [stats-Ex.Rout] Error 1 > make[4]: Leaving directory `/home/gavin/R/devel/build/tests/Examples' > make[3]: *** [test-Examples-Base] Error 2 > make[3]: Leaving directory `/home/gavin/R/devel/build/tests/Examples' > make[2]: *** [test-Examples] Error 2 > make[2]: Leaving directory `/home/gavin/R/devel/build/tests' > make[1]: *** [test-all-basics] Error 1 > make[1]: Leaving directory `/home/gavin/R/devel/build/tests' > make: *** [check-devel] Error 2 > > 5) Looking at stats-Ex.Rout.fail I see this at the end: > > > > ### Name: confint > > ### Title: Confidence Intervals for Model Parameters > > ### Aliases: confint confint.default > > ### Keywords: models > > > > ### ** Examples > > > > fit <- lm(100/mpg ~ disp + hp + wt + am, data=mtcars) > > confint(fit) > 2.5 % 97.5 % > (Intercept) -0.774822875 2.256118188 > disp-0.002867999 0.008273849 > hp -0.001400580 0.011949674 > wt 0.380088737 1.622517536 > am -0.614677730 0.926307310 > > confint(fit, "wt") > 2.5 % 97.5 % > wt 0.3800887 1.622518 > > > > ## from example(glm) > > counts <- c(18,17,15,20,10,20,25,13,12) > > outcome <- gl(3,1,9); treatment <- gl(3,3) > > glm.D93 <- glm(counts ~ outcome + treatment, family=poisson()) > > confint(glm.D93) > Error in loadNamespace(name) : there is no package called 'MASS' > Execution halted > > But as there are no recommended packages this fails as indicated. So is > there something wrong with what I'm doing (i.e. something recent in the > last week has changed that I missed in NEWS) or is this a bug in the > tests or examples? > > Cheers > > Gav __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] make error in R devel
What you are doing is not building the recommended packages. We not guarantee that the examples will work if you do not. (I was aware this would happen but have not yet put in a workaround.) *WHY* are you not building the recommended packages? On Wed, 6 Apr 2005, Gavin Simpson wrote: Dear list, I just hit an error that stopped my make && make check-devel operation on my linux box (FC3, i686 P4 2GB RAM). Just to note that I've been building the development branch(?) for some time and this is the first hint of a problem. 1) updated the src tree using svn update 2) ran ../configure --with-recommended-package=no from my build directory 3) got: R is now configured for i686-pc-linux-gnu Source directory: ../src Installation directory:/usr/local C compiler:gcc -O3 -g -march=i386 -mcpu=i686 C++ compiler: g++ -O3 -g -march=i386 -mcpu=i686 Fortran compiler: g77 -O3 -g -march=i386 -mcpu=i686 Interfaces supported: X11, tcltk External libraries:readline, BLAS(generic) Additional capabilities: PNG, JPEG, iconv, MBCS, NLS Options enabled: R profiling Recommended packages: no Note I've editted config.site to compile with optimisations -O3 4) did make && make check-devel and get this: ... make[5]: Entering directory `/home/gavin/R/devel/build/src/library' >>> Building/Updating help pages for package 'graphics' Formats: text html latex example make[5]: Leaving directory `/home/gavin/R/devel/build/src/library' running code in 'graphics-Ex.R' ... OK collecting examples for package 'stats' ... make[5]: Entering directory `/home/gavin/R/devel/build/src/library' >>> Building/Updating help pages for package 'stats' Formats: text html latex example make[5]: Leaving directory `/home/gavin/R/devel/build/src/library' running code in 'stats-Ex.R' ...make[4]: *** [stats-Ex.Rout] Error 1 make[4]: Leaving directory `/home/gavin/R/devel/build/tests/Examples' make[3]: *** [test-Examples-Base] Error 2 make[3]: Leaving directory `/home/gavin/R/devel/build/tests/Examples' make[2]: *** [test-Examples] Error 2 make[2]: Leaving directory `/home/gavin/R/devel/build/tests' make[1]: *** [test-all-basics] Error 1 make[1]: Leaving directory `/home/gavin/R/devel/build/tests' make: *** [check-devel] Error 2 5) Looking at stats-Ex.Rout.fail I see this at the end: ### Name: confint ### Title: Confidence Intervals for Model Parameters ### Aliases: confint confint.default ### Keywords: models ### ** Examples fit <- lm(100/mpg ~ disp + hp + wt + am, data=mtcars) confint(fit) 2.5 % 97.5 % (Intercept) -0.774822875 2.256118188 disp-0.002867999 0.008273849 hp -0.001400580 0.011949674 wt 0.380088737 1.622517536 am -0.614677730 0.926307310 confint(fit, "wt") 2.5 % 97.5 % wt 0.3800887 1.622518 ## from example(glm) counts <- c(18,17,15,20,10,20,25,13,12) outcome <- gl(3,1,9); treatment <- gl(3,3) glm.D93 <- glm(counts ~ outcome + treatment, family=poisson()) confint(glm.D93) Error in loadNamespace(name) : there is no package called 'MASS' Execution halted But as there are no recommended packages this fails as indicated. So is there something wrong with what I'm doing (i.e. something recent in the last week has changed that I missed in NEWS) or is this a bug in the tests or examples? Cheers Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way[W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% __ R-devel@stat.math.ethz.ch 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@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] make error in R devel
Dear list, I just hit an error that stopped my make && make check-devel operation on my linux box (FC3, i686 P4 2GB RAM). Just to note that I've been building the development branch(?) for some time and this is the first hint of a problem. 1) updated the src tree using svn update 2) ran ../configure --with-recommended-package=no from my build directory 3) got: R is now configured for i686-pc-linux-gnu Source directory: ../src Installation directory:/usr/local C compiler:gcc -O3 -g -march=i386 -mcpu=i686 C++ compiler: g++ -O3 -g -march=i386 -mcpu=i686 Fortran compiler: g77 -O3 -g -march=i386 -mcpu=i686 Interfaces supported: X11, tcltk External libraries:readline, BLAS(generic) Additional capabilities: PNG, JPEG, iconv, MBCS, NLS Options enabled: R profiling Recommended packages: no Note I've editted config.site to compile with optimisations -O3 4) did make && make check-devel and get this: ... make[5]: Entering directory `/home/gavin/R/devel/build/src/library' >>> Building/Updating help pages for package 'graphics' Formats: text html latex example make[5]: Leaving directory `/home/gavin/R/devel/build/src/library' running code in 'graphics-Ex.R' ... OK collecting examples for package 'stats' ... make[5]: Entering directory `/home/gavin/R/devel/build/src/library' >>> Building/Updating help pages for package 'stats' Formats: text html latex example make[5]: Leaving directory `/home/gavin/R/devel/build/src/library' running code in 'stats-Ex.R' ...make[4]: *** [stats-Ex.Rout] Error 1 make[4]: Leaving directory `/home/gavin/R/devel/build/tests/Examples' make[3]: *** [test-Examples-Base] Error 2 make[3]: Leaving directory `/home/gavin/R/devel/build/tests/Examples' make[2]: *** [test-Examples] Error 2 make[2]: Leaving directory `/home/gavin/R/devel/build/tests' make[1]: *** [test-all-basics] Error 1 make[1]: Leaving directory `/home/gavin/R/devel/build/tests' make: *** [check-devel] Error 2 5) Looking at stats-Ex.Rout.fail I see this at the end: > > ### Name: confint > ### Title: Confidence Intervals for Model Parameters > ### Aliases: confint confint.default > ### Keywords: models > > ### ** Examples > > fit <- lm(100/mpg ~ disp + hp + wt + am, data=mtcars) > confint(fit) 2.5 % 97.5 % (Intercept) -0.774822875 2.256118188 disp-0.002867999 0.008273849 hp -0.001400580 0.011949674 wt 0.380088737 1.622517536 am -0.614677730 0.926307310 > confint(fit, "wt") 2.5 % 97.5 % wt 0.3800887 1.622518 > > ## from example(glm) > counts <- c(18,17,15,20,10,20,25,13,12) > outcome <- gl(3,1,9); treatment <- gl(3,3) > glm.D93 <- glm(counts ~ outcome + treatment, family=poisson()) > confint(glm.D93) Error in loadNamespace(name) : there is no package called 'MASS' Execution halted But as there are no recommended packages this fails as indicated. So is there something wrong with what I'm doing (i.e. something recent in the last week has changed that I missed in NEWS) or is this a bug in the tests or examples? Cheers Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way[W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] HP-UX and IRIX recent builds? Any other rare platforms?
I have just (this week) got access to an SGI Origin running IRIX 6.5.27. In answer to your previous questions about locales, "locale -a" shows no utf8 locales; mbrtowc and wcwidth are defined in wchar.h. Compiling R with the native compilers looks problematic. If I find the right compiler flags I will let you know. Martyn On Wed, 2005-04-06 at 09:07 +0100, Prof Brian Ripley wrote: > I am revising the section in R-admin on platforms. When I asked about > locales earlier this year I got no reply about HP-UX and IRIX, so I will > presume that no one has built R on those OSes recently. If you have, > please send me the OS number and the flags you used. > > Platforms where I have seen recent reports: > > Linux > MacOS X > Solaris 8, 9, 10 (any Solaris 7 users please let me know) > AIX 5.1 and 5.2 > FreeBSD > > and less recently, OSF/1. > __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] HP-UX and IRIX recent builds? Any other rare platforms?
I am revising the section in R-admin on platforms. When I asked about locales earlier this year I got no reply about HP-UX and IRIX, so I will presume that no one has built R on those OSes recently. If you have, please send me the OS number and the flags you used. Platforms where I have seen recent reports: Linux MacOS X Solaris 8, 9, 10 (any Solaris 7 users please let me know) AIX 5.1 and 5.2 FreeBSD and less recently, OSF/1. -- 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@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel