Skip to content

Problem with strip_dots and anonymous functions #1154

@NikNakk

Description

@NikNakk

The current code which handles anonymous functions within strip_dots (in aes_calculated.r) is broken for anonymous functions. With pairlists, it tries to lapply each member of the pairlist to itself lapply(expr, expr) which I think will always result in an error.

Minimal reproducible example:

ggplot2:::strip_dots(quote(function(x) x))

I'm about to submit a pull request which fixes this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions