Problems in R but not in S: --------------------------- 1) 'unlist' seems to have several other problems than the ones reported up to now. For instance, 'unlist' can be used on almost any object in S without much trouble. Eg.: S> unlist(c(2)) [1] 2 S> --- R> unlist(c(2)) Segmentation fault (core dumped) This occurs in R-0.49 and in R-0.50-a1. 2) Problem with the parser: When a function contains a condition between brackets the closing bracket must be adjacent to the last item in R but not in S. Here is an example: S> new <- function (x,y,z,k) { S+ message <- list(x,y,a=if(z) k S+ ) S+ message S+ } S> --- R> new <- function (x,y,z,k) { R+ message <- list(x,y,a=if(z) k R+ ) ) ^ Error: syntax error R> This occurs in R-0.49 and in R-0.50-a1. Problems in R: -------------- 1) The 'R Graphics' window does not have any X class or resource and therefore cannot be given a default size or geometry. Would it be possible to give the graphic window a class name so that the size could be specified in the '.Xdefaults' file? 2) It does not appear to be possible to specify the 'xlim' when using boxplot. This might also be the case in S but would be nice to have. Eg., when plotting several boxplots together, lets say 7. One would generally plot 4 first and then 3. Hence, if they are fitted on the same page the boxplots of the first line will be wider than on the second... 3) Some problems occur when using the help. Eg., R> ?"+" sorry, no help for "Arithmetic". R> This occurs in R-0.49 and in R-0.50-a1 and seems to be the case for any item contained in a help file starting with a capital letter. 4) The option 'right' when using print gives an error. In S, 'print.default' calls 'print.structure' and then 'print.matrix'. This last one allows this option. Can anything be done as 'print.default' is internal in R? 5) The control-c still does not work on R-0.50-a1 under certain variants of Linux. What is the easiest way to fix this? Patrick. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Patrick Lindsey <plindsey@luc.ac.be> writes:> 5) The control-c still does not work on R-0.50-a1 under certain > variants of Linux. What is the easiest way to fix this?Upgrade the readline library to v.2.1 and relink (for some reason that I never figured out, this installs as libreadline.so.3.0, unless you specifically tell it otherwise), RedHat has an RPM package in the contrib section. Debians package is the newer one. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>>>>> Patrick Lindsey writes:> Problems in R but not in S: > ---------------------------> 1) 'unlist' seems to have several other problems than the ones > reported up to now. For instance, 'unlist' can be used on almost any > object in S without much trouble. Eg.:S> unlist(c(2))> [1] 2S>> ---R> unlist(c(2))> Segmentation fault (core dumped) > This occurs in R-0.49 and in R-0.50-a1.Confirmed.> 1) The 'R Graphics' window does not have any X class or resource and > therefore cannot be given a default size or geometry. Would it be > possible to give the graphic window a class name so that the size > could be specified in the '.Xdefaults' file?Yes, that would be nice.> 3) Some problems occur when using the help. Eg.,R> ?"+"> sorry, no help for "Arithmetic".R>> This occurs in R-0.49 and in R-0.50-a1 and seems to be the case for > any item contained in a help file starting with a capital letter.The problem is as follows. The function help() catches the special funs like "+" etc (more precisely, the arithmetic, comparison, logic and extract ones) and directly assigns a topic for them. For "+", the topic is 'Arithmetic". But the index file has no entry for that, because (see RHOME/etc/install-help) *********************************************************************** if [ $lib != 'base' ] ##-- The following is NOT done anymore in 'base': ##-- 1) Each help file should have ALIAS(..) for ALL it's objects ##-- 2) The help file name may differ from _ANY_ object (eg 'Special') then for file in $FILES do echo "$file $file" done fi *********************************************************************** If that really is the intended usage (Martin?), then e.g. the Arithmetic file should also have ALIAS(Arithmetic) in it. -k =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-