Find the total memory of all objects

ls.mem(pos = 1, all.names = TRUE, unit = "MB")

Arguments

pos
Integer indicating position within the environment hierarchy to search within. 1 = Global.
all.names
= Logical indicating whether to include names that begin with ".".
unit
Character indicating the units to return for size of objects.