R Under development (unstable) (2024-10-17 r87242 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(randtoolbox) Loading required package: rngWELL This is randtoolbox. For an overview, type 'help("randtoolbox")'. > > n <- 5 > > #### n argument #### > try(sobol(-1)) Error in sobol(-1) : invalid argument 'n' > > #### dim argument #### > try(sobol(1, 0)) Error in sobol(1, 0) : invalid argument 'dim' > > > #### init argument #### > sobol(n) [1] 0.500 0.750 0.250 0.375 0.875 > randtoolbox:::.getrandtoolboxEnv(".sobol.seed") $seed [1] 6 > sobol(n, init=TRUE) [1] 0.500 0.750 0.250 0.375 0.875 > randtoolbox:::.getrandtoolboxEnv(".sobol.seed") $seed [1] 6 > sobol(n, init=FALSE) [1] 0.6250 0.1250 0.1875 0.6875 0.9375 > try(sobol(5, init="a")) Error in sobol(5, init = "a") : invalid argument 'init' > > #### mixed argument #### > > try(sobol(1, mixed=3)) Error in sobol(1, mixed = 3) : invalid argument 'mixed' > sobol(n, mixed=TRUE) [1] 0.500 0.750 0.250 0.375 0.875 > > #### normal argument #### > sobol(n, normal=TRUE) [1] 0.0000000 0.6744898 -0.6744898 -0.3186394 1.1503494 > try(sobol(3, normal=1)) Error in sobol(3, normal = 1) : invalid argument 'normal' > > > #### start argument #### > try(sobol(3, start="3")) Error in sobol(3, start = "3") : invalid argument 'start' > sobol(n, start=0) [1] 0.000 0.500 0.750 0.250 0.375 > sobol(n, start=1) [1] 0.500 0.750 0.250 0.375 0.875 > > > > proc.time() user system elapsed 0.25 0.06 0.26