by Hadley Wickham

Monthly downloads



License GPL-2
LinkingTo Rcpp
NeedsCompilation yes
Packaged 2015-06-19 11:38:23 UTC; hadley
Repository CRAN
Date/Publication 2015-06-20 00:35:21

Tools for Computing on the Language

Useful tools to pry back the covers of R and understand the language at a deeper level.
Full Readme

Functions in pryr

Name Description
as.envlist Convert a list of environments to an envlist object.
f A compact syntax for anonymous functions.
show_c_source Find C source code for internal R functions
%<a-% Create an active binding.
compose Compose multiple functions
is_promise Promise info
mem_used How much memory is currently used by R?
unenclose Unenclose a closure.
otype Determine object type.
enclosing_env Find the environment that encloses of a function.
find_funs Find functions matching criteria.
rebind Rebind an existing name.
is_active_binding Active binding info
make_call Make and evaluate calls.
sexp_type Inspect internal attributes of R objects.
names_c Extract function table from names.c from R subversion repository.
bytes Print the byte-wise representation of a value
substitute_q A version of substitute that evaluates its first argument.
find_uses Find all functions in that call supplied functions.
standardise_call Standardise a function call
ftype Determine function type.
uneval Capture the call associated with a promise.
mem_change Determine change in memory from running code
rls Recursive ls.
parenv Get parent/ancestor environment
method_from_call Given a function class, find correspoding S4 method
%<c-% Create a constant (locked) binding.
call_tree Display a call (or expression) as a tree.
make_function Make a function from its components.
modify_lang Recursively modify a language object
parenvs Given an environment or object, return an envlist of its parent environments.
object_size Compute the size of an object.
dots Capture unevaluated dots.
fget Find a function with specified name.
is_s3_generic Determine if a function is an S3 generic or S3 method.
modify_call Modify the arguments of a call.
partial Partial apply a function, filling in some arguments.
track_copy Track if an object is copied
where Find where a name is defined.
parent_promise Find the parent (first) promise.
%<d-% Create an delayed binding.
print.envlist Print an envlist
subs A version of substitute that works in the global environment.
explicit Tools for making promises explicit
No Results!


Get your badge !