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

:: sometimes not used as operator #70

Closed
krlmlr opened this issue Oct 15, 2022 · 2 comments
Closed

:: sometimes not used as operator #70

krlmlr opened this issue Oct 15, 2022 · 2 comments

Comments

@krlmlr
Copy link
Contributor

krlmlr commented Oct 15, 2022

The fun continues, with most recent #56, d8ab33b.

fun1 <- function() {
  foo::bar()
}

fun2 <- function() {
  foo::bar()
  callr::r(function() {})
}

fun3 <- function() {
  foo::bar()
  fun1()
}

constructive::construct(fun1)
#> function() {
#>   foo::bar()
#> }
constructive::construct(fun2)
#> function() {
#>   `::`(foo, bar)()
#>   `::`(callr, r)(function() `{`())
#> }
constructive::construct(fun3)
#> function() {
#>   foo::bar()
#>   fun1()
#> }

Created on 2022-10-15 with reprex v2.0.2

@krlmlr
Copy link
Contributor Author

krlmlr commented Oct 15, 2022

Again, it's not styler:

styler::style_text("
fun2 <- function() {
  foo::bar()
  callr::r(function() {})
}
")
#> 
#> fun2 <- function() {
#>   foo::bar()
#>   callr::r(function() {})
#> }

Created on 2022-10-15 with reprex v2.0.2

@moodymudskipper
Copy link
Collaborator

Thanks, it was due to another oversight in deparse_call()

@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants