[Rd] memory.limit(): Typo in Windows NEWS and function returns a "disregarded" error

Pfaff, Bernhard Dr. Bernhard_Pfaff at fra.invesco.com
Fri Apr 24 11:13:26 CEST 2009


Dear list subscriber (R-Core),

there is a minor typo in the Windows specific NEWS for R 2.9.0: 
http://cran.at.r-project.org/bin/windows/base/CHANGES.R-2.9.0
There is no function 'memory.limits() but memory.limit() (see below). 


Secondly, I am kind of irritated by the function's behaviour. It returns an Error, but as it seems the memory limit is set according to the numeric value for the size argument even it is not a numeric-value according to the error message? In R 2.8.1 this error was not returned (see below).

A clarification/explanation is most welcome.

Kind Regards,
Bernhard

> memory.limits()
Error: could not find function "memory.limits"
> memory.limit()
[1] 1535
> memory.limit(size = 2000)
Error in trunc(.Internal(memory.size(size))) : 
  Non-numeric argument to mathematical function
> memory.limit()
[1] 2000
> version
               _                           
platform       i386-pc-mingw32             
arch           i386                        
os             mingw32                     
system         i386, mingw32               
status                                     
major          2                           
minor          9.0                         
year           2009                        
month          04                          
day            17                          
svn rev        48333                       
language       R                           
version.string R version 2.9.0 (2009-04-17)
> 


In comparison for R 2.8.1:

> memory.limit()
[1] 1535.875
> memory.limit(2000)
NULL
> memory.limit()
[1] 2000
> version
               _                           
platform       i386-pc-mingw32             
arch           i386                        
os             mingw32                     
system         i386, mingw32               
status                                     
major          2                           
minor          8.1                         
year           2008                        
month          12                          
day            22                          
svn rev        47281                       
language       R                           
version.string R version 2.8.1 (2008-12-22)


Dr. Bernhard Pfaff
Director
Global Quantitative Equity

Invesco Asset Management Deutschland GmbH
Bleichstrasse 60-62
D-60313 Frankfurt am Main

Tel: +49 (0)69 29807 230
Fax: +49 (0)69 29807 178
www.institutional.invesco.com
Email: bernhard_pfaff at fra.invesco.com

Geschäftsführer: Karl Georg Bayer, Bernhard Langer, Dr. Jens Langewand, Alexander Lehmann, Christian Puschmann
Handelsregister: Frankfurt am Main, HRB 28469
Sitz der Gesellschaft: Frankfurt am Main
 
*****************************************************************
Confidentiality Note: The information contained in this ...{{dropped:10}}



More information about the R-devel mailing list