Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with rlang's new {{ operator #864

Closed
3 tasks done
wlandau opened this issue May 8, 2019 · 1 comment
Closed
3 tasks done

Conflict with rlang's new {{ operator #864

wlandau opened this issue May 8, 2019 · 1 comment
Assignees

Comments

@wlandau
Copy link
Member

wlandau commented May 8, 2019

Prework

Description

Development rlang has a new interpolation operator {{. This operator conflicts with drake commands with nested curly braces. For example, this plan

drake_plan(
  y = {
    dir.create(file_out("xyz"))
    writeLines("123", "xyz/e.txt")
  }
)

creates this command

rlang::expr(local({
  {
    dir.create(file_out("xyz"))
    writeLines("123", "xyz/e.txt")
  }
}))

which generates the error in r-lib/rlang#772.

@wlandau wlandau self-assigned this May 8, 2019
@wlandau
Copy link
Member Author

wlandau commented May 8, 2019

To be clear, this only affects multiline commands. It does not affect single-line commands, e.g. small function calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant