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
Important: Read this before posting to this forum
- This forum is for questions related to the use of Apollo. We will answer some general choice modelling questions too, where appropriate, and time permitting. We cannot answer questions about how to estimate choice models with other software packages.
- There is a very detailed manual for Apollo available at http://www.ApolloChoiceModelling.com/manual.html. This contains detailed descriptions of the various Apollo functions, and numerous examples are available at http://www.ApolloChoiceModelling.com/examples.html. In addition, help files are available for all functions, using e.g. ?apollo_mnl
- Before asking a question on the forum, users are kindly requested to follow these steps:
- Check that the same issue has not already been addressed in the forum - there is a search tool.
- Ensure that the correct syntax has been used. For any function, detailed instructions are available directly in Apollo, e.g. by using ?apollo_mnl for apollo_mnl
- Check the frequently asked questions section on the Apollo website, which discusses some common issues/failures. Please see http://www.apollochoicemodelling.com/faq.html
- Make sure that R is using the latest official release of Apollo.
- Users can check which version they are running by entering packageVersion("apollo").
- Then check what is the latest full release (not development version) at http://www.ApolloChoiceModelling.com/code.html.
- To update to the latest official version, just enter install.packages("apollo"). To update to a development version, download the appropriate binary file from http://www.ApolloChoiceModelling.com/code.html, and install the package from file
- If the above steps do not resolve the issue, then users should follow these steps when posting a question:
- provide full details on the issue, including the entire code and output, including any error messages
- posts will not immediately appear on the forum, but will be checked by a moderator first. This may take a day or two at busy times. There is no need to submit the post multiple times.
File path of model outputs
-
- Site Admin
- Posts: 998
- Joined: 24 Apr 2020, 16:29
Re: File path of model outputs
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
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
-
- Posts: 12
- Joined: 19 Jan 2021, 07:53
- Contact:
Re: File path of model outputs
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!
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!
Álvaro A. Gutiérrez-Vargas
https://alvarogutyerrez.github.io/
https://alvarogutyerrez.github.io/
-
- Site Admin
- Posts: 998
- Joined: 24 Apr 2020, 16:29
Re: File path of model outputs
You mean the output files? Just don't run apollo_saveOutput()
-
- Posts: 12
- Joined: 19 Jan 2021, 07:53
- Contact:
Re: File path of model outputs
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 (:
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 (:
Álvaro A. Gutiérrez-Vargas
https://alvarogutyerrez.github.io/
https://alvarogutyerrez.github.io/
-
- Site Admin
- Posts: 998
- Joined: 24 Apr 2020, 16:29
Re: File path of model outputs
You can turn this off, as described in the manual, or by looking at ?apollo_estimate ![Smile :-)](./images/smilies/icon_e_smile.gif)
![Smile :-)](./images/smilies/icon_e_smile.gif)