{"action":"created","issue":{"url":"https://api.github.com/repos/ss3sim/ss3sim/issues/228","repository_url":"https://api.github.com/repos/ss3sim/ss3sim","labels_url":"https://api.github.com/repos/ss3sim/ss3sim/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/ss3sim/ss3sim/issues/228/comments","events_url":"https://api.github.com/repos/ss3sim/ss3sim/issues/228/events","html_url":"https://github.com/ss3sim/ss3sim/issues/228","id":149570928,"number":228,"title":"Problem with parallel option","user":{"login":"GwladysLambert","id":16024690,"avatar_url":"https://avatars.githubusercontent.com/u/16024690?v=3","gravatar_id":"","url":"https://api.github.com/users/GwladysLambert","html_url":"https://github.com/GwladysLambert","followers_url":"https://api.github.com/users/GwladysLambert/followers","following_url":"https://api.github.com/users/GwladysLambert/following{/other_user}","gists_url":"https://api.github.com/users/GwladysLambert/gists{/gist_id}","starred_url":"https://api.github.com/users/GwladysLambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GwladysLambert/subscriptions","organizations_url":"https://api.github.com/users/GwladysLambert/orgs","repos_url":"https://api.github.com/users/GwladysLambert/repos","events_url":"https://api.github.com/users/GwladysLambert/events{/privacy}","received_events_url":"https://api.github.com/users/GwladysLambert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-19T20:12:17Z","updated_at":"2016-04-19T20:37:29Z","closed_at":null,"body":"Ok this is most definitely a problem from my end but I am hoping the error message I get will look familiar to somebody who is used to parallel processing, which I am not. I can use the doParallel and foreach libraries in other contexts but when I am using the run_ss3sim function with arguments parallel=T and parallel_iterations=T it works the first time I turn Rstudio on (sometimes), but any subsequent time I try to use it it gives me the following error message:\r\n\r\n> run_ss3sim(iterations=1:4, scenarios='D0-F1-cod', case_folder='cases', case_files=case_files, > > >om_dir=om, em_dir=em, parallel=T, parallel_iterations=T)\r\nRunning iterations in parallel.\r\nautomatically exporting the following variables from the local environment:\r\n  dots, x \r\nexplicitly exporting variables(s): substr_r\r\nnumValues: 4, numResults: 0, stopped: TRUE\r\ngot results for task 1\r\naccumulate got an error result\r\nnumValues: 4, numResults: 1, stopped: TRUE\r\nreturning status FALSE\r\ngot results for task 2\r\nnumValues: 4, numResults: 2, stopped: TRUE\r\nreturning status FALSE\r\ngot results for task 3\r\nnumValues: 4, numResults: 3, stopped: TRUE\r\nreturning status FALSE\r\ngot results for task 4\r\nnumValues: 4, numResults: 4, stopped: TRUE\r\nnot calling combine function due to errors\r\nreturning status TRUE\r\nError in do.call(\"ss3sim_base\", c(x, list(iterations = it_, bias_already_run = TRUE),  : \r\n  task 1 failed - \"Missing Files in om : .ctl file \r\nMissing Files in om : .dat file \r\nMissing Files in om : ss3.par file \r\nMissing Files in om : starter.ss\r\n      file \r\nMissing Files in om : forecast.ss file \r\n\"\r\n\r\nThe function works when I turn the parallel arguments off. I have tried reinstalling all the packages but to no avail. Anybody has got any suggestion? \r\n\r\nMany thanks in advance"},"comment":{"url":"https://api.github.com/repos/ss3sim/ss3sim/issues/comments/212117809","html_url":"https://github.com/ss3sim/ss3sim/issues/228#issuecomment-212117809","issue_url":"https://api.github.com/repos/ss3sim/ss3sim/issues/228","id":212117809,"user":{"login":"jimianelli","id":2715618,"avatar_url":"https://avatars.githubusercontent.com/u/2715618?v=3","gravatar_id":"","url":"https://api.github.com/users/jimianelli","html_url":"https://github.com/jimianelli","followers_url":"https://api.github.com/users/jimianelli/followers","following_url":"https://api.github.com/users/jimianelli/following{/other_user}","gists_url":"https://api.github.com/users/jimianelli/gists{/gist_id}","starred_url":"https://api.github.com/users/jimianelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimianelli/subscriptions","organizations_url":"https://api.github.com/users/jimianelli/orgs","repos_url":"https://api.github.com/users/jimianelli/repos","events_url":"https://api.github.com/users/jimianelli/events{/privacy}","received_events_url":"https://api.github.com/users/jimianelli/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T20:37:29Z","updated_at":"2016-04-19T20:37:29Z","body":"if using my computer...unsure if from R or Rstudio it may still be run over the shared noaa network thingy...anyway to do it at a command prompt?"}}