Skip to content

Commit 77d9400

Browse files
committed
Export IS_TESTING from harp::
1 parent 6705951 commit 77d9400

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/ark/src/modules.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use harp::environment::R_ENVS;
1111
use harp::exec::RFunction;
1212
use harp::exec::RFunctionExt;
1313
use harp::r_symbol;
14-
use harp::test::IS_TESTING;
1514
use harp::utils::r_poke_option;
1615
use libr::Rf_ScalarLogical;
1716
use libr::SEXP;
@@ -77,7 +76,7 @@ pub struct ArkEnvs {
7776

7877
pub fn initialize() -> anyhow::Result<()> {
7978
// If we are `testing`, set the corresponding R level global option
80-
if IS_TESTING {
79+
if harp::IS_TESTING {
8180
r_poke_option_ark_testing()
8281
}
8382

crates/ark/src/sys/unix/interface.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub fn setup_r(mut args: Vec<*mut c_char>) {
7575
//
7676
// This must be called _after_ `Rf_initialize_R()`, since that's where R
7777
// detects the stack size and sets the default limit.
78-
if harp::test::IS_TESTING {
78+
if harp::IS_TESTING {
7979
libr::set(libr::R_CStackLimit, usize::MAX);
8080
}
8181

crates/harp/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ pub use harp::object::list_get;
6262
pub use harp::object::list_poke;
6363
pub use harp::object::RObject;
6464
pub use harp::symbol::RSymbol;
65+
pub use harp::test::IS_TESTING;
6566
pub use harp::utils::get_option;
6667
pub use harp_macros::register;
6768

0 commit comments

Comments
 (0)