Important: Read this before posting to this forum

  1. 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.
  2. 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
  3. Before asking a question on the forum, users are kindly requested to follow these steps:
    1. Check that the same issue has not already been addressed in the forum - there is a search tool.
    2. 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
    3. Check the frequently asked questions section on the Apollo website, which discusses some common issues/failures. Please see http://www.apollochoicemodelling.com/faq.html
    4. Make sure that R is using the latest official release of Apollo.
  4. If the above steps do not resolve the issue, then users should follow these steps when posting a question:
    1. provide full details on the issue, including the entire code and output, including any error messages
    2. 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

Put in requests for new capabilities such as functions for new models.
Post Reply
Anna
Posts: 5
Joined: 01 Feb 2021, 20:47

File path of model outputs

Post 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
stephanehess
Site Admin
Posts: 974
Joined: 24 Apr 2020, 16:29

Re: File path of model outputs

Post 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
--------------------------------
Stephane Hess
www.stephanehess.me.uk
alvarogutyerrez
Posts: 12
Joined: 19 Jan 2021, 07:53
Contact:

Re: File path of model outputs

Post 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!
Álvaro A. Gutiérrez-Vargas
https://alvarogutyerrez.github.io/
stephanehess
Site Admin
Posts: 974
Joined: 24 Apr 2020, 16:29

Re: File path of model outputs

Post by stephanehess »

You mean the output files? Just don't run apollo_saveOutput()
--------------------------------
Stephane Hess
www.stephanehess.me.uk
alvarogutyerrez
Posts: 12
Joined: 19 Jan 2021, 07:53
Contact:

Re: File path of model outputs

Post 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 (:
Álvaro A. Gutiérrez-Vargas
https://alvarogutyerrez.github.io/
stephanehess
Site Admin
Posts: 974
Joined: 24 Apr 2020, 16:29

Re: File path of model outputs

Post by stephanehess »

You can turn this off, as described in the manual, or by looking at ?apollo_estimate :-)
--------------------------------
Stephane Hess
www.stephanehess.me.uk
Post Reply