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

rlang not playing nice if loaded after tidyr #133

Closed
burchill opened this issue May 9, 2017 · 0 comments
Closed

rlang not playing nice if loaded after tidyr #133

burchill opened this issue May 9, 2017 · 0 comments

Comments

@burchill
Copy link
Contributor

@burchill burchill commented May 9, 2017

While this code works fine:

# library(tidyr)
library(rlang)

test <- function(df, ...) {
  group_by <- quos(...)
  print(group_by)
}
test(1,x=e,a=s)
# $x
# <quosure: global>
# ~e
# 
# $a
# <quosure: global>
# ~s
# 
# attr(,"class")
# [1] "quosures"

Unquoting library(tidyr) (i.e. loading it first) gives me the following error:

Error in .Call(replace_na, x, y) : 
  first argument must be a string (of length 1) or native symbol reference

My session info:

R version 3.3.1 (2016-06-21)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.9.5 (Mavericks)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rlang_0.1   tidyr_0.6.2

loaded via a namespace (and not attached):
[1] assertthat_0.1 magrittr_1.5   tools_3.3.1    tibble_1.2     Rcpp_0.12.8 
lionel- added a commit to lionel-/rlang that referenced this issue May 9, 2017
lionel- added a commit to lionel-/rlang that referenced this issue May 9, 2017
@lionel- lionel- closed this in #134 May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant