tests/testthat/fixtures/rlanglibtest/R/rlanglibtest.R
raw| 1 | #' @useDynLib rlanglibtest, .registration = TRUE |
| 2 | NULL |
| 3 | |
| 4 | .onLoad <- function(lib, pkg) { |
| 5 | # Causes rlang package to load and register native routines |
| 6 | rlang::dots_list() |
| 7 | |
| 8 | .Call(rlanglibtest_library_load) |
| 9 | } |
| 10 | |
| 11 | test_trace_unexported <- function(e) { |
| 12 | trace_back(e) |
| 13 | } |
| 14 | test_trace_unexported_child <- local(function(e) { |
| 15 | test_trace_unexported(e) |
| 16 | }) |