copy_control_stream: Copy a NONMEM control stream file

View source: R/copy-model-from.R

copy_control_streamR Documentation

Copy a NONMEM control stream file

Description

Helper function to copy a NONMEM control stream file and optionally update the new file. Note that any file existing at .new_model_path will be overwritten.

Usage

copy_control_stream(
  .parent_model_path,
  .new_model_path,
  .overwrite,
  .update_model_file = FALSE
)

Arguments

.parent_model_path

Path to the control stream to copy

.new_model_path

Path to copy the new control stream to

.overwrite

If TRUE, overwrite existing file at .new_model_path. If FALSE and file exists at .new_model_path error.

.update_model_file

If TRUE, the default, update the ⁠$PROBLEM⁠ line in the new control stream. If FALSE, ⁠{.new_model}.[mod|ctl]⁠ will be an exact copy of its parent control stream.


metrumresearchgroup/rbabylon documentation built on April 21, 2024, 3:26 a.m.