I'm sourcing a code that need to execute an .exe file that runs a retrospective analysis for a stock assessment model.
it is when my loop reach following piece of code that it gives an error message.
shell(paste( file.path(data.path,'retro',"sms.exe"),"-nox -nohess",sep=" "), invisible = TRUE)
Warning message: In shell(paste(file.path(data.path, "retro", "sms.exe"), "-nox -nohess", : 'M:/Sprat/Sprat_assessment/SMS_2023/Sprat-div-4_plus_IIIa_exploreBound2/retro/sms.exe -nox -nohess' had status error 127
The code is running on an external driver, and I've recently updated R, using newest R-version 4.2.2, with newest versions of Rtools in Windows.
My colleagues can run the code successfully from their computer using windows, but I cannot. Any reasons why I cannot run the code and get the error message. Is their a way to set the path or allow my R to have the path in its internal enviroment?
I've already tried problems-solving from using system(), but since the code are hardwired for work processes and should not be changed this is not an optimal choice. So I need for my R execution to work with the same coding.