\HeaderA{memory.size}{Report on Memory Allocation}{memory.size}
\aliasA{memory.limit}{memory.size}{memory.limit}
\keyword{utilities}{memory.size}
\begin{Description}\relax
\code{memory.size} and \code{memory.limit} are used to manage the
total memory allocation on Windows.  On other platforms these are
stubs which report infinity with a warning.
\end{Description}
\begin{Usage}
\begin{verbatim}
memory.size(max = FALSE)

memory.limit(size = NA)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{max}] logical. If true the maximum amount of memory obtained from
the OS is reported, otherwise the amount currently in use.
\item[\code{size}] numeric. If \code{NA} report the memory size, otherwise
request a new limit, in Mb.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
To restrict memory usage on a Unix-alike use the facilities of the
shell used to launch \R, e.g. \code{limit} or \code{ulimit}.
\end{Details}
\begin{Value}
Size in bytes: always \code{Inf}.
\end{Value}
\begin{SeeAlso}\relax
\LinkA{Memory-limits}{Memory.Rdash.limits} for other limits.
\end{SeeAlso}

