Learn R Programming

⚠️There's a newer version (0.1.6) of this package.Take me there.

pryr

pryr is superseded. Please use:

  • rlang for low-level R programming.
  • lobstr for object sizes & comparison.
  • sloop for OOP tools.

Copy Link

Version

Install

install.packages('pryr')

Monthly Downloads

26,556

Version

0.1.5

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

July 26th, 2021

Functions in pryr (0.1.5)

dots

Capture unevaluated dots.
explicit

Tools for making promises explicit
enclosing_env

Find the environment that encloses of a function.
%<c-%

Create a constant (locked) binding.
is_active_binding

Active binding info
%<d-%

Create an delayed binding.
is_promise

Promise info
mem_change

Determine change in memory from running code
make_function

Make a function from its components.
names_c

Extract function table from names.c from R subversion repository.
object_size

Compute the size of an object.
as.envlist

Convert a list of environments to an envlist object.
f

A compact syntax for anonymous functions.
%<a-%

Create an active binding.
fget

Find a function with specified name.
subs

A version of substitute that works in the global environment.
substitute_q

A version of substitute that evaluates its first argument.
bytes

Print the byte-wise representation of a value
call_tree

Display a call (or expression) as a tree.
modify_lang

Recursively modify a language object
modify_call

Modify the arguments of a call.
parenv

Get parent/ancestor environment
partial

Partial apply a function, filling in some arguments.
ftype

Determine function type.
sexp_type

Inspect internal attributes of R objects.
parenvs

Given an environment or object, return an envlist of its parent environments.
print.envlist

Print an envlist
method_from_call

Given a function class, find correspoding S4 method
mem_used

How much memory is currently used by R?
rebind

Rebind an existing name.
find_funs

Find functions matching criteria.
find_uses

Find all functions in that call supplied functions.
parent_promise

Find the parent (first) promise.
otype

Determine object type.
track_copy

Track if an object is copied
rls

Recursive ls.
unenclose

Unenclose a closure.
show_c_source

Find C source code for internal R functions
standardise_call

Standardise a function call
uneval

Capture the call associated with a promise.
where

Find where a name is defined.
make_call

Make and evaluate calls.
is_s3_generic

Determine if a function is an S3 generic or S3 method.
compose

Compose multiple functions