Code Monkey home page Code Monkey logo

rlang's Introduction

rlang

R-CMD-check Codecov test coverage 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

rlang's People

Contributors

lionel- avatar hadley avatar krlmlr avatar davisvaughan avatar egnha avatar jennybc avatar romainfrancois avatar jimhester avatar osorensen avatar yutannihilation avatar mikmart avatar kevinykuo avatar gaborcsardi avatar schloerke avatar salim-b avatar matthieugomez avatar batpigandme avatar bisaloo avatar 001ben avatar topepo avatar mgirlich avatar pkq avatar richierocks avatar rcannood avatar saghirb avatar smingerson avatar uribo avatar stevecondylios avatar kalibera avatar tylergrantsmith avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.