r-lib/rlang


Low-level API for programming with R

https://rlang.r-lib.org

Language: R

Keywords: r


rlang

Build Status AppVeyor Build Status Coverage Status Lifecycle Status

Important: The rlang API is still maturing. Please see ?rlang::lifecycle for the list of functions that are considered stable.

Overview

The rlang package provides tools to work with core language features of R and the tidyverse:

  • The tidy eval framework, which is a well-founded system for non-standard evaluation built on quasiquotation (!!) and quoted arguments (enquo()). See https://tidyeval.tidyverse.org.

  • User-friendly error reporting with backtraces and chained errors (abort(), trace_back(), with_abort()).

  • A consistent API for working with base types. Note that overall this is a work in progress that is still in flux:

    • Environments, e.g. env(), env_has(), env_get(), env_bind(), env_unbind(), env_print().

    • Calls and symbols, e.g. call2(), is_call(), sym(), syms().

    • Functions, e.g. new_function(), as_function(). The latter supports the purrr-style formula notation for lambda functions.

    • Vectors, including construction (lgl(), int(), ...) and predicates (is_logical(), is_character()).

    • Attributes, e.g. set_names().

Installation

You can install the released version of rlang from CRAN with:

install.packages("rlang")

Or install the development version from github with:

# install.packages("remotes")
remotes::install_github("r-lib/rlang")

Cheatsheet

tidy eval cheatsheet

Project Statistics

Sourcerank 16
Repository Size 12.5 MB
Stars 249
Forks 77
Watchers 22
Open issues 67
Dependencies 11
Contributors 38
Tags 18
Created
Last updated
Last pushed

Top Contributors See all

Lionel Henry Hadley Wickham Kirill Müller Jennifer (Jenny) Bryan Eugene Ha Jim Hester Romain François Øystein Sørensen Kevin Kuo Mikko Marttila Mara Averick Gábor Csárdi Hiroaki Yutani Matthieu Gomez yang Karl Dunkle Werner Zach Burchill Davis Vaughan 001ben Mauro Lepore

Packages Referencing this Repo

rlang
Functions for Base Types and Core R and 'Tidyverse' Features
Latest release 0.4.2 - Updated - 249 stars

Recent Tags See all

v0.4.1 October 23, 2019
v0.4.0 June 25, 2019
v0.3.4 April 02, 2019
v0.3.3 March 28, 2019
v0.3.2 March 21, 2019
v0.3.1 January 09, 2019
v0.3.0 October 20, 2018
v0.2.2 August 14, 2018
v0.2.1 May 30, 2018
v0.1.6 December 21, 2017
v0.1.4 November 06, 2017
v0.1.2 August 09, 2017
v0.1.1 May 17, 2017
v0.1.0 May 17, 2017
v0.1 May 06, 2017

Something wrong with this page? Make a suggestion

Last synced: 2019-11-23 11:32:42 UTC

Login to resync this repository