pryr: Tools for Computing on the Language

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

AuthorHadley Wickham [aut, cre], R Core team [ctb] (Some code extracted from base R)
Date of publication2015-06-20 00:35:21
MaintainerHadley Wickham <hadley@rstudio.com>
LicenseGPL-2
Version0.1.2
https://github.com/hadley/pryr

View on CRAN

Man pages

as.envlist: Convert a list of environments to an 'envlist' object.

assign-active: Create an active binding.

assign-constant: Create a constant (locked) binding.

assign-delayed: Create an delayed binding.

bytes: Print the byte-wise representation of a value

call_tree: Display a call (or expression) as a tree.

compose: Compose multiple functions

dots: Capture unevaluated dots.

enclosing_env: Find the environment that encloses of a function.

explicit: Tools for making promises explicit

f: A compact syntax for anonymous functions.

fget: Find a function with specified name.

find_funs: Find functions matching criteria.

find_uses: Find all functions in that call supplied functions.

ftype: Determine function type.

inspect: Inspect internal attributes of R objects.

is_active_binding: Active binding info

is_promise: Promise info

is_s3_generic: Determine if a function is an S3 generic or S3 method.

make_call: Make and evaluate calls.

make_function: Make a function from its components.

mem_change: Determine change in memory from running code

mem_used: How much memory is currently used by R?

method_from_call: Given a function class, find correspoding S4 method

modify_call: Modify the arguments of a call.

modify_lang: Recursively modify a language object

names_c: Extract function table from names.c from R subversion...

object_size: Compute the size of an object.

otype: Determine object type.

parent_promise: Find the parent (first) promise.

parenv: Get parent/ancestor environment

parenvs: Given an environment or object, return an 'envlist' of its...

partial: Partial apply a function, filling in some arguments.

print.envlist: Print an 'envlist'

rebind: Rebind an existing name.

rls: Recursive ls.

show_c_source: Find C source code for internal R functions

standardise_call: Standardise a function call

subs: A version of substitute that works in the global environment.

substitute_q: A version of substitute that evaluates its first argument.

track_copy: Track if an object is copied

unenclose: Unenclose a closure.

uneval: Capture the call associated with a promise.

where: Find where a name is defined.

Files in this package

pryr
pryr/tests
pryr/tests/testthat.R
pryr/tests/testthat
pryr/tests/testthat/test-ftype.r
pryr/tests/testthat/test-object_size.R
pryr/tests/testthat/test-bytes.r
pryr/tests/testthat/test-method-from-call.r
pryr/tests/testthat/test-active-binding.r
pryr/tests/testthat/test-track-copy.R
pryr/src
pryr/src/promise.cpp
pryr/src/slice.cpp
pryr/src/object_size.cpp
pryr/src/inspect.cpp
pryr/src/bytes.cpp
pryr/src/typename.cpp
pryr/src/RcppExports.cpp
pryr/NAMESPACE
pryr/R
pryr/R/rls.r
pryr/R/dots.r
pryr/R/uneval.r
pryr/R/substitute.r
pryr/R/modify-lang.r
pryr/R/modify-call.R
pryr/R/assign-constant.r
pryr/R/find-funs.r
pryr/R/explicit-promise.R
pryr/R/rebind.r
pryr/R/method-from-call.r
pryr/R/standardise-call.r
pryr/R/ftype.r
pryr/R/names_c.R
pryr/R/utils.r
pryr/R/inspect.r
pryr/R/assign-active.r
pryr/R/make-call.R
pryr/R/s3.r
pryr/R/make-function.r
pryr/R/enclosing.R
pryr/R/compose.r
pryr/R/promise.r
pryr/R/RcppExports.R
pryr/R/f.r
pryr/R/fget.r
pryr/R/unenclose.r
pryr/R/draw-tree.r
pryr/R/where.r
pryr/R/otype.r
pryr/R/bytes.r
pryr/R/object_size.R
pryr/R/assign-delayed.r
pryr/R/find_uses.R
pryr/R/active.r
pryr/R/parenv.r
pryr/R/mem.R
pryr/R/partial.r
pryr/README.md
pryr/MD5
pryr/DESCRIPTION
pryr/man
pryr/man/is_active_binding.Rd pryr/man/parenvs.Rd pryr/man/assign-constant.Rd pryr/man/compose.Rd pryr/man/as.envlist.Rd pryr/man/parent_promise.Rd pryr/man/print.envlist.Rd pryr/man/uneval.Rd pryr/man/where.Rd pryr/man/modify_lang.Rd pryr/man/rls.Rd pryr/man/explicit.Rd pryr/man/mem_change.Rd pryr/man/is_s3_generic.Rd pryr/man/fget.Rd pryr/man/enclosing_env.Rd pryr/man/names_c.Rd pryr/man/partial.Rd pryr/man/track_copy.Rd pryr/man/bytes.Rd pryr/man/find_funs.Rd pryr/man/rebind.Rd pryr/man/method_from_call.Rd pryr/man/show_c_source.Rd pryr/man/object_size.Rd pryr/man/dots.Rd pryr/man/find_uses.Rd pryr/man/modify_call.Rd pryr/man/make_call.Rd pryr/man/unenclose.Rd pryr/man/assign-delayed.Rd pryr/man/ftype.Rd pryr/man/make_function.Rd pryr/man/standardise_call.Rd pryr/man/assign-active.Rd pryr/man/parenv.Rd pryr/man/is_promise.Rd pryr/man/call_tree.Rd pryr/man/inspect.Rd pryr/man/f.Rd pryr/man/otype.Rd pryr/man/subs.Rd pryr/man/mem_used.Rd pryr/man/substitute_q.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.