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

Fail to trace dplyr/vignettes/rowwise.R #14

Open
fikovnik opened this issue Jan 24, 2022 · 0 comments
Open

Fail to trace dplyr/vignettes/rowwise.R #14

fikovnik opened this issue Jan 24, 2022 · 0 comments

Comments

@fikovnik
Copy link
Member

root@e4faa73ccbde:/tmp/out/programs/dplyr/vignettes# R -e 'argtracer:::test_trace_file("rowwise.R")'

R version 4.0.2 (2020-06-22) -- "Taking Off Again"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> argtracer:::test_trace_file("rowwise.R")
*** Temp DB path:  /tmp/RtmpQguqEN/file4161741c395f.sxpdb
`summarise()` has grouped output by 'name'. You can override using the `.groups` argument.
`summarise()` has grouped output by 'id'. You can override using the `.groups` argument.
Error: Problem with `mutate()` column `y2`.
ℹ `y2 = y`.
ℹ `y2` must be size 1, not 3.
ℹ Did you mean: `y2 = list(y)` ?
ℹ The error occurred in row 1.
Backtrace:
     █
  1. ├─argtracer:::test_trace_file("rowwise.R")
  2. │ └─argtracer::trace_file(file, db_path, environment = environment)
  3. │   ├─base::tryCatch(...)
  4. │   │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
  5. │   │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
  6. │   │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
  7. │   ├─base::system.time(...)
  8. │   └─argtracer::trace_code(db, code, quote = FALSE, environment = environment)
  9. ├─rf %>% mutate(y2 = y)
 10. ├─dplyr::mutate(., y2 = y)
 11. └─dplyr:::mutate.data.frame(., y2 = y)
 12.   └─dplyr:::mutate_cols(.data, ..., caller_env = caller_env())
 13.     └─base::withCallingHandlers(...)
        status  time      file                                db_path db_size
elapsed      1 2.639 rowwise.R /tmp/RtmpQguqEN/file4161741c395f.sxpdb    3122
        error
elapsed    NA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant