@@ -1123,7 +1123,7 @@ sample <- function(data = NULL,
11231123 refresh = NULL ,
11241124 init = NULL ,
11251125 save_latent_dynamics = FALSE ,
1126- output_dir = NULL ,
1126+ output_dir = getOption( " cmdstanr_output_dir " ) ,
11271127 output_basename = NULL ,
11281128 sig_figs = NULL ,
11291129 chains = 4 ,
@@ -1334,7 +1334,7 @@ sample_mpi <- function(data = NULL,
13341334 refresh = NULL ,
13351335 init = NULL ,
13361336 save_latent_dynamics = FALSE ,
1337- output_dir = NULL ,
1337+ output_dir = getOption( " cmdstanr_output_dir " ) ,
13381338 output_basename = NULL ,
13391339 chains = 1 ,
13401340 chain_ids = seq_len(chains ),
@@ -1484,7 +1484,7 @@ optimize <- function(data = NULL,
14841484 refresh = NULL ,
14851485 init = NULL ,
14861486 save_latent_dynamics = FALSE ,
1487- output_dir = NULL ,
1487+ output_dir = getOption( " cmdstanr_output_dir " ) ,
14881488 output_basename = NULL ,
14891489 sig_figs = NULL ,
14901490 threads = NULL ,
@@ -1622,7 +1622,7 @@ laplace <- function(data = NULL,
16221622 refresh = NULL ,
16231623 init = NULL ,
16241624 save_latent_dynamics = FALSE ,
1625- output_dir = NULL ,
1625+ output_dir = getOption( " cmdstanr_output_dir " ) ,
16261626 output_basename = NULL ,
16271627 sig_figs = NULL ,
16281628 threads = NULL ,
@@ -1769,7 +1769,7 @@ variational <- function(data = NULL,
17691769 refresh = NULL ,
17701770 init = NULL ,
17711771 save_latent_dynamics = FALSE ,
1772- output_dir = NULL ,
1772+ output_dir = getOption( " cmdstanr_output_dir " ) ,
17731773 output_basename = NULL ,
17741774 sig_figs = NULL ,
17751775 threads = NULL ,
@@ -1908,7 +1908,7 @@ pathfinder <- function(data = NULL,
19081908 refresh = NULL ,
19091909 init = NULL ,
19101910 save_latent_dynamics = FALSE ,
1911- output_dir = NULL ,
1911+ output_dir = getOption( " cmdstanr_output_dir " ) ,
19121912 output_basename = NULL ,
19131913 sig_figs = NULL ,
19141914 opencl_ids = NULL ,
@@ -2060,7 +2060,7 @@ CmdStanModel$set("public", name = "pathfinder", value = pathfinder)
20602060generate_quantities <- function (fitted_params ,
20612061 data = NULL ,
20622062 seed = NULL ,
2063- output_dir = NULL ,
2063+ output_dir = getOption( " cmdstanr_output_dir " ) ,
20642064 output_basename = NULL ,
20652065 sig_figs = NULL ,
20662066 parallel_chains = getOption(" mc.cores" , 1 ),
@@ -2125,7 +2125,7 @@ CmdStanModel$set("public", name = "generate_quantities", value = generate_quanti
21252125diagnose <- function (data = NULL ,
21262126 seed = NULL ,
21272127 init = NULL ,
2128- output_dir = NULL ,
2128+ output_dir = getOption( " cmdstanr_output_dir " ) ,
21292129 output_basename = NULL ,
21302130 epsilon = NULL ,
21312131 error = NULL ) {
0 commit comments