Skip to content

Commit

Permalink
Export IS_TESTING from harp::
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Sep 27, 2024
1 parent 6705951 commit 77d9400
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/ark/src/modules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use harp::environment::R_ENVS;
use harp::exec::RFunction;
use harp::exec::RFunctionExt;
use harp::r_symbol;
use harp::test::IS_TESTING;
use harp::utils::r_poke_option;
use libr::Rf_ScalarLogical;
use libr::SEXP;
Expand Down Expand Up @@ -77,7 +76,7 @@ pub struct ArkEnvs {

pub fn initialize() -> anyhow::Result<()> {
// If we are `testing`, set the corresponding R level global option
if IS_TESTING {
if harp::IS_TESTING {
r_poke_option_ark_testing()
}

Expand Down
2 changes: 1 addition & 1 deletion crates/ark/src/sys/unix/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub fn setup_r(mut args: Vec<*mut c_char>) {
//
// This must be called _after_ `Rf_initialize_R()`, since that's where R
// detects the stack size and sets the default limit.
if harp::test::IS_TESTING {
if harp::IS_TESTING {
libr::set(libr::R_CStackLimit, usize::MAX);
}

Expand Down
1 change: 1 addition & 0 deletions crates/harp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pub use harp::object::list_get;
pub use harp::object::list_poke;
pub use harp::object::RObject;
pub use harp::symbol::RSymbol;
pub use harp::test::IS_TESTING;
pub use harp::utils::get_option;
pub use harp_macros::register;

Expand Down

0 comments on commit 77d9400

Please sign in to comment.