Skip to content

Errors with . and .data pronouns in do() #2998

@hongooi73

Description

@hongooi73

This is with a fresh build of dplyr as of 20 minutes ago. It looks like multiple references to . or .data is confusing the evaluator.

# this works
> do(mtcars, m=lm(mpg ~ ., data=.))
# A tibble: 1 x 1
         m
    <list>
1 <S3: lm>


# these don't work
> do(mtcars, m=lm(mpg ~ ., data=.), w=lm(wt ~ ., data=.))
Error in is.data.frame(data) : object '.' not found

> do(mtcars, m=lm(mpg ~ ., data=.data), w=lm(wt ~ ., data=.data))
Error in is.data.frame(data) : object '.data' not found

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions