Skip to content

Commit 238b156

Browse files
committed
huh
1 parent e426bdd commit 238b156

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/ark/src/interface.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,16 @@ impl RMain {
365365
let libraries = RLibraries::from_r_home_path(&r_home);
366366
libraries.initialize_pre_setup_r();
367367

368+
if !harp::test::IS_TESTING {
369+
panic!("not testing");
370+
}
371+
368372
// In tests R may be run from various threads. This confuses R's stack
369373
// overflow checks so we disable those. This should not make it in
370374
// production builds as it causes stack overflows to crash R instead of
371375
// throwing an R error.
372376
if harp::test::IS_TESTING {
377+
panic!("testing");
373378
unsafe {
374379
libr::set(libr::R_CStackLimit, usize::MAX);
375380
}

0 commit comments

Comments
 (0)