I recently updated all of my R packages and now I am getting breaking behavior with a variety of rsocsim functions that used to work fine. The main culprit at the moment is the read_opop and read_omar functions which cannot find the files. I get this error:
cannot open file '/home/aarong/projects/research/multiracial_sim/data/data_constructed/sims/uneven_hypo_baseline/sim_results_run.sup_26_/result.opop': No such file or directory
This seems to be a result of the fact that in the newer package the folder name is not sim_results_run.sup_26_ but rather just sim_results_26_. However, the read_opop and read_omar functions are still expecting the name of the supfile in the file name:
fn <- paste0(folder, "/sim_results_", supfile, "_", seed,
"_", suffix, "/result.opop")
I recently updated all of my R packages and now I am getting breaking behavior with a variety of rsocsim functions that used to work fine. The main culprit at the moment is the
read_opopandread_omarfunctions which cannot find the files. I get this error:This seems to be a result of the fact that in the newer package the folder name is not
sim_results_run.sup_26_but rather justsim_results_26_. However, theread_opopandread_omarfunctions are still expecting the name of the supfile in the file name: