env_size: Calculates the Total Memory Used

Description Usage Arguments Details Value See Also Examples

View source: R/env_size.R

Description

This function uses object_size from the pryr package to compute the total amount of memory used by objects in an environment.

Usage

1
env_size(env)

Arguments

env

The environment whose size is to be computed.

Details

The names are wrapped in backticks. Otherwise, non-syntactic names will cause problems. This function is used within render_one as part of the runtime stats assessment.

Value

The size in bytes, as a numeric value (scalar).

See Also

object_size

Examples

1
2
3
4
e1 <- new.env()
env_size(e1)
evalq(x <- 1:10000L, e1)
env_size(e1)

autoharp documentation built on May 30, 2021, 1:07 a.m.

Related to env_size in autoharp...