rlang: Tools for Language Objects and Evaluation
- CRAN: http://cran.r-project.org/web/packages/rlang/index.html
- GitHub: https://github.com/hadley/rlang
- Vignettes: Tidy evaluation
> library(rlang)
Attaching package: 'rlang'
The following objects are masked from 'package:purrr':
%@%, %||%, as_function, flatten, flatten_chr, flatten_dbl,
flatten_int, flatten_lgl, invoke, list_along, modify, prepend,
rep_along, set_names, splice
The following object is masked from 'package:tibble':
has_name
The following objects are masked from 'package:testthat':
is_false, is_null, is_true
The following objects are masked from 'package:devtools':
ns_env, pkg_env
The following object is masked from 'package:git2r':
is_empty
The following object is masked from 'package:magrittr':
set_names
バージョン: 0.1.1
関数名` | 概略 |
---|---|
abort |
Signal an error, warning, or message |
are_na |
Test for missing values |
arg_match |
Match an argument to a character vector |
as_bytes |
Coerce to a raw vector |
as_env |
Coerce to an environment |
as_function |
Convert to function or closure |
as_overscope |
Create a dynamic scope for tidy evaluation |
as_pairlist |
Coerce to pairlist |
as_quosure |
Coerce object to quosure |
as_utf8_character |
Coerce to a character vector and attempt encoding conversion |
bare-type-predicates |
Bare type predicates |
call_inspect |
Inspect a call |
caller_env |
Get the environment of the caller frame |
cnd_signal |
Signal a condition |
dictionary |
Create a dictionary |
dots_definitions |
Tidy quotation of multiple expressions and dots |
dots_list |
Extract dots with splicing semantics |
dots_n |
How many arguments are currently forwarded in dots? |
dots_values |
Evaluate dots with preliminary splicing |
duplicate |
Duplicate an R object |
empty_env |
Get the empty environment |
env |
Create a new environment |
env_bind |
Bind symbols to objects in an environment |
env_bury |
Overscope bindings by defining symbols deeper in a scope |
env_clone |
Clone an environment |
env_depth |
Depth of an environment chain |
env_get |
Get an object from an environment |
env_has |
Does an environment have or see bindings? |
env_inherits |
Does environment inherit from another environment? |
env_names |
Names of symbols bound in an environment |
env_parent |
Get parent environments |
env_unbind |
Remove bindings from an environment |
eval_bare |
Evaluate an expression in an environment |
eval_tidy |
Evaluate an expression tidily |
eval_tidy_ |
Tidy evaluation in a custom environment |
exiting |
Create an exiting or in place handler |
expr |
Raw quotation of an expression |
expr_interp |
Process unquote operators in a captured expression |
expr_label |
Turn an expression to a label |
exprs_auto_name |
Ensure that list of expressions are all named |
f_rhs |
Get or set formula components |
f_text |
Turn RHS of formula into a string or label |
flatten |
Flatten or squash a list of lists into a simpler vector |
fn_env |
Return the closure environment of a function |
fn_fmls |
Extract arguments from a function |
frame_position |
Find the position or distance of a frame on the evaluation stack |
friendly_type |
Format a type for error messages |
get_env |
Get or set the environment of an object |
has_length |
How long is an object? |
has_name |
Does an object have an element with this name? |
invoke |
Invoke a function with a list of arguments |
is_callable |
Is an object callable? |
is_condition |
Is object a condition? |
is_copyable |
Is an object copyable? |
is_empty |
Is object an empty vector or NULL? |
is_env |
Is object an environment? |
is_expr |
Is an object an expression? |
is_formula |
Is object a formula? |
is_frame |
Is object a frame? |
is_function |
Is object a function? |
is_installed |
Is a package installed in the library? |
is_integerish |
Is a vector integer-like? |
is_lang |
Is object a call? |
is_named |
Is object named? |
is_pairlist |
Is object a node or pairlist? |
is_quosure |
Is an object a quosure or quosure-like? |
is_stack |
Is object a stack? |
is_symbol |
Is object a symbol? |
is_true |
Is object identical to TRUE or FALSE? |
lang |
Create a call |
lang_args |
Extract arguments from a call |
lang_fn |
Extract function from a call |
lang_head |
Return the head or tail of a call object |
lang_modify |
Modify the arguments of a call |
lang_name |
Extract function name of a call |
lang_standardise |
Standardise a call |
missing |
Missing values |
missing_arg |
Generate or handle a missing argument |
modify |
Modify a vector |
mut_utf8_ |
locale Set the locale's codeset for testing |
names2 |
Get names of a vector |
new_cnd |
Create a condition object |
new_formula |
Create a formula |
new_function |
Create a function |
ns_env |
Get the namespace of a package |
op-definition |
Definition operator |
op-get-attr |
Infix attribute accessor |
op-na-default |
Replace missing values |
op-null-default |
Default value for 'NULL' |
pairlist |
Helpers for pairlist and language nodes |
parse_expr |
Parse R code |
prepend |
Prepend a vector |
prim_name |
Name of a primitive function |
quasiquotation |
Quasiquotation of an expression |
quo-predicates |
Is a quosure quoting a symbolic, missing or NULL object? |
quo_expr |
Splice a quosure and format it into string or label |
quosure |
Create quosures |
restarting |
Create a restarting handler |
return_from |
Jump to or from a frame |
rst_abort |
Jump to the abort restart |
rst_list |
Restarts utilities |
rst_muffle |
Jump to a muffling restart |
scalar-type-predicates |
Scalar type predicates |
scoped_env |
Scoped environments |
seq2 |
Increasing sequence of integers in an interval |
set_attrs |
Add attributes to an object |
set_chr_encoding |
Set encoding of a string or character vector |
set_expr |
Set and get an expression |
set_names |
Set names of a vector |
splice |
Splice a list within a vector |
stack |
Call stack information |
stack_trim |
Trim top call layers from the evaluation stack |
string |
Create a string |
switch_lang |
Dispatch on call type |
switch_type |
Dispatch on base types |
sym |
Create a symbol or list of symbols |
tidyeval-data |
Data pronoun for tidy evaluation |
type-predicates |
Type predicates |
type_of |
Base type of an object |
vector-along |
Create vectors matching the length of a given vector |
vector-coercion |
Coerce an object to a base type |
vector-construction |
Create vectors |
vector-len |
Create vectors matching a given length |
with_env |
Evaluate an expression within a given environment |
with_handlers |
Establish handlers on the stack |
with_restarts |
Establish a restart point on the stack |