Page 1 of 1
File path of model outputs
Posted: 07 Oct 2021, 07:51
by Anna
Hi!
I am not sure if this is really a feature request or if I am just missing something. Is there a way to change the file path of where apollo writes the saved output to file? I was checking the apollo_saveOutput() function but couldn't see any specifiers.
Thanks,
Anna
Re: File path of model outputs
Posted: 07 Oct 2021, 17:12
by stephanehess
Anna
this is a feature starting with Apollo v.0.2.6, but is not fully documented yet. You need to include the setting outputDirectory in apollo_control.
Stephane
Re: File path of model outputs
Posted: 13 Jul 2022, 08:50
by alvarogutyerrez
Hi Stephane and David,
related to the OP question. Is there any way to prevent Apollo from creating those files that are stored in the "outputDirectory"?
I have a script where I am running several "intermediate" models, and those files that Apollo creates are just cluttering my working directory, but I haven't figured out how to suppress them.
Thank you!
Re: File path of model outputs
Posted: 15 Jul 2022, 13:25
by stephanehess
You mean the output files? Just don't run apollo_saveOutput()
Re: File path of model outputs
Posted: 15 Jul 2022, 17:08
by alvarogutyerrez
Hi Stephane,
Thank you for your answer. Yes, I meant the output files. Apollo is creating a CSV file with the iterations of the model (even without running
apollo::apollo_saveOutput()). I just tested it using the first
example provided on the website.
As I mentioned, after running this
file (of course commenting the line
apollo::apollo_saveOutput()), Apollo it still creates a file called
MNL_RP_iterations.csv.
btw: I am using version 0.2.7 if this is of any relevance.
Thank you again (:
Re: File path of model outputs
Posted: 15 Jul 2022, 17:15
by stephanehess
You can turn this off, as described in the manual, or by looking at ?apollo_estimate