Replies: 2 comments 5 replies
-
Hi @garpe , |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. I try to explain better. The installation is standard, so all the scripts are where they have to be. As I wrote, the script "start_function.R" at a certain point change the working directory as "setwd(cfg$results_folder)" in the output directory (cfg$result_folder) The error occurs in the else branch in the following code:
I think that the "else" is executed only in Windows. I fixed it just removing the directory change and adding the output directory explicitly where needed but there are several others way to do it thank you very much |
Beta Was this translation helpful? Give feedback.
-
Hi, I installed MAGPIE in Windows 11 via clone from github just today and I launched the default script for testing
The default run fails in the "start_function.R" script.
In this script, at a certain point the statement is executed
"setwd(cfg$results_folder)"
to set the directory where to save the "runstatistics.rda" file
Subsequently, the statement:
"system("Rscript submit.R", wait=cfg$sequential)"
is executed.
This fails because the file "submit.R" is not present in the current directory (the one set by setwd())
I solved it by removing the directory change and modififing the whole path of the "runstatistics.rda" file, in this way at least the script
ends without errors.
It seems to be an easily detectable problem but I don't think it has been reported before
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions