-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add column of "trace_source" #14
Comments
Re-opened because this extra column has to be put in the tracing template too, to ensure consistent trace structure. At present, traces created from packages have this column, but traces from functions do not. |
Nope, not quite. Still some buggy behaviour with capturing the correct calling environment |
Here is the output applied to a modified version of library (typetracer)
packageVersion ("typetracer")
#> [1] '0.1.1.37'
path <- "/<path>/<to>/hypertidy/geodist"
res <- trace_package (pkg_dir = path)
table (res$call_env)
#>
#> base::lapply base::tryCatch
#> 56 4
#> geodist::geodist geodist::geodist_benchmark
#> 560 6
#> geodist::geodist_min geodist::geodist_vec
#> 20 180
#> geodist::georange testthat::expect_error
#> 100 58
#> testthat::expect_message testthat::expect_silent
#> 82 41 Created on 2023-06-22 with reprex v2.0.2 (Note that this doesn't actually work in reprex, because that uses a fresh environment which strips all typetracer injections. This has been lightly faked.) And the "call_env" column enables identication of function calls which are made under various expections, importantly including |
With value of either "examples" or "tests". For ropensci-review-tools/autotest#76
The text was updated successfully, but these errors were encountered: