>>>>> On Thu, 26 Jun 1997 15:34:59 +0100 (NFT), >>>>> Heiner Schwarte wrote:> Could someone plese confirm the following ? > (AIX 4.1.4, 0.49+patch1+patch2a)> ################################################################> schwarte@cauchy:[/home/schwarte]>/usr/local/R-0.49/bin/R> R : Copyright 1997, Robert Gentleman and Ross Ihaka > Version 0.49 Beta (April 23, 1997)> R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under certain conditions. > Type "license()" for details.>> logical(10) > [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE >> gc() > Garbage collection ... > 149210 cons cells free (74%) > 1820k bytes of heap free (93%) >> logical(10) > [1] TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE >> logical(10) > [1] TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE> #################################################################The same on a PC with Linux/Debian-1.3: R : Copyright 1997, Robert Gentleman and Ross Ihaka Version 0.49 Beta (April 23, 1997) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type "license()" for details. R> logical(10) [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE R> gc() Garbage collection ... 142276 cons cells free (71%) 3945k bytes of heap free (96%) R> logical(10) [1] TRUE TRUE TRUE FALSE FALSE TRUE TRUE FALSE TRUE FALSE R> logical(10) [1] TRUE TRUE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE R> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Same on SunOS 4.1.4.> logical(10)[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE> gc()Garbage collection ... 149941 cons cells free (74%) 1821k bytes of heap free (93%)> logical(10)[1] TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE>Ben =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Could someone plese confirm the following ? (AIX 4.1.4, 0.49+patch1+patch2a) ################################################################ schwarte@cauchy:[/home/schwarte]>/usr/local/R-0.49/bin/R R : Copyright 1997, Robert Gentleman and Ross Ihaka Version 0.49 Beta (April 23, 1997) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type "license()" for details.> logical(10)[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE> gc()Garbage collection ... 149210 cons cells free (74%) 1820k bytes of heap free (93%)> logical(10)[1] TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE> logical(10)[1] TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE ################################################################# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Yesterday I posted a problem with logical() after a gc(). This problem occurs because do_makevector() in the file builtin.c does not properly initialize the memory if a vector of logicals is manufactured. Simply adding an initialization loop solves the problem. ( Following line 333 one finds the initialization for INTSXP and REALSXP. Add one for LGLSXP.) Heiner =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-