@@ -590,6 +590,7 @@ test_that("Design works with cbc_inspect", {
590590# =============================================================================
591591
592592test_that(" balance_by basic functionality works" , {
593+ skip_on_cran() # Skip on CRAN due to computation time
593594 # Create profiles with attribute-specific feature (like EV range)
594595 profiles <- cbc_profiles(
595596 price = c(15 , 20 , 25 ),
@@ -642,6 +643,7 @@ test_that("balance_by basic functionality works", {
642643})
643644
644645test_that(" balance_by with multiple attributes works" , {
646+ skip_on_cran() # Skip on CRAN due to computation time
645647 # Create profiles with unbalanced attribute combinations
646648 # Similar to vehicle example but with multiple attributes
647649 profiles <- cbc_profiles(
@@ -693,6 +695,7 @@ test_that("balance_by with multiple attributes works", {
693695})
694696
695697test_that(" balance_by validation works correctly" , {
698+ skip_on_cran() # Skip on CRAN due to computation time
696699 profiles <- setup_test_profiles()
697700
698701 # Test invalid attribute name
@@ -723,6 +726,7 @@ test_that("balance_by validation works correctly", {
723726})
724727
725728test_that(" balance_by conflicts with label" , {
729+ skip_on_cran() # Skip on CRAN due to computation time
726730 profiles <- cbc_profiles(
727731 price = c(1 , 2 ),
728732 brand = c(" A" , " B" , " C" )
@@ -743,6 +747,7 @@ test_that("balance_by conflicts with label", {
743747})
744748
745749test_that(" balance_by handles edge cases gracefully" , {
750+ skip_on_cran() # Skip on CRAN due to computation time
746751 # Test with single-valued attribute (should warn or error)
747752 profiles_single <- cbc_profiles(
748753 price = c(1 , 2 , 3 ),
0 commit comments