Learn R Programming

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

22,785

Version

0.1.6

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 17th, 2023

Functions in pryr (0.1.6)

bytes

Print the byte-wise representation of a value
%<d-%

Create an delayed binding.
ftype

Determine function type.
explicit

Tools for making promises explicit
call_tree

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

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

Find functions matching criteria.
sexp_type

Inspect internal attributes of R objects.
modify_call

Modify the arguments of a call.
find_uses

Find all functions in that call supplied functions.
compose

Compose multiple functions
dots

Capture unevaluated dots.
as.envlist

Convert a list of environments to an envlist object.
f

A compact syntax for anonymous functions.
fget

Find a function with specified name.
partial

Partial apply a function, filling in some arguments.
modify_lang

Recursively modify a language object
make_call

Make and evaluate calls.
otype

Determine object type.
%<a-%

Create an active binding.
is_active_binding

Active binding info
parent_promise

Find the parent (first) promise.
parenv

Get parent/ancestor environment
mem_used

How much memory is currently used by R?
make_function

Make a function from its components.
parenvs

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

Promise info
print.envlist

Print an envlist
track_copy

Track if an object is copied
mem_change

Determine change in memory from running code
subs

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

A version of substitute that evaluates its first argument.
method_from_call

Given a function class, find correspoding S4 method
rebind

Rebind an existing name.
rls

Recursive ls.
names_c

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

Unenclose a closure.
object_size

Compute the size of an object.
standardise_call

Standardise a function call
show_c_source

Find C source code for internal R functions
where

Find where a name is defined.
uneval

Capture the call associated with a promise.
%<c-%

Create a constant (locked) binding.
enclosing_env

Find the environment that encloses of a function.