[Rd] memory.limit returns error (not present in 2.8.) (PR#13673)

francisco at voseconsulting.com francisco at voseconsulting.com
Fri Apr 24 05:15:12 CEST 2009

Full_Name: Francisco J. Zagmutt
Version: 2.9.0
OS: XP pro, SP2
Submission from: (NULL) (

- Description: memory.limit(x) will yield an error even though the memory
allocation limit is changed to x (when possible). The same call does not yield
an error in R version 2.8.x

- Example code and output:

> memory.limit()
[1] 2046
> memory.limit(2092)
Error in trunc(.Internal(memory.size(size))) :
  Non-numeric argument to mathematical function
> memory.limit()
[1] 2092

- Result: The memory limit was correctly changed but still reported the error

- Version information:
platform       i386-pc-mingw32
arch           i386
os             mingw32
system         i386, mingw32
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)



More information about the R-devel mailing list