Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug fix] : Fixed gsub issue in write.config.SIPNET #3275

Merged
merged 9 commits into from
May 17, 2024
3 changes: 2 additions & 1 deletion models/sipnet/R/write.configs.SIPNET.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ write.config.SIPNET <- function(defaults, trait.values, settings, run.id, inputs
cpruncmd <- cpoutcmd <- rmoutdircmd <- rmrundircmd <- ""
if (!is.null(settings$host$rabbitmq)) {
#rsync cmd from remote to local host.
settings$host$rabbitmq$cpfcmd <- ifelse(is.null(settings$host$rabbitmq$cpfcmd), "", settings$host$rabbitmq$cpfcmd)
cpruncmd <- gsub("@OUTDIR@", settings$host$rundir, settings$host$rabbitmq$cpfcmd)
cpruncmd <- gsub("@OUTFOLDER@", rundir, cpruncmd)

Expand Down Expand Up @@ -630,4 +631,4 @@ remove.config.SIPNET <- function(main.outdir, settings) {
} else {
print("*** WARNING: Removal of files on remote host not yet implemented ***")
}
} # remove.config.SIPNET
} # remove.config.SIPNET