Skip to content

Warning message on logfilename when using future #32

@AaronGullickson

Description

@AaronGullickson

When using the process_method = "future" argument to socsim, the following warning message appears:

Warning messages:
1: In file(logfilename, "r") :
  cannot open file 'sim_results_socsim.sup_99_/logfile.log': No such file or directory
2: In value[[3L]](cond) : Error while reading file
3: In value[[3L]](cond) : sim_results_socsim.sup_99_/logfile.log
4: In value[[3L]](cond) : Error during execution of simulation!
5: In file(logfilename, "r") : cannot open the connection

This appears to be due to the same problem as #31 where the actual sim results directory does not include the socsim.sup bit. This issue does not appear when using the default argument for process_method.

Here is a repex:

library(rsocsim)
library(here)

folder <- create_simulation_folder(here(), "test")
supfile <- create_sup_file(folder)
seed <- 99

socsim(folder, "socsim.sup", seed, process_method = "future")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions