Learn R Programming

pmxNODE (version 0.1.0)

copy_examples: Copy examples to your folder

Description

This function allows to copy one or multiple examples (data and model files) to a directory of your choice.
Either examples, example_nr, example_software, or example_nr + example_software must be given.

Usage

copy_examples(
  target_folder,
  examples = NULL,
  example_nr = NULL,
  example_software = NULL,
  pkg_name = "pmxNODE"
)

Value

Copied examples in specified folder.

Arguments

target_folder

(string) Path to the folder the examples should be copied to

examples

(vector of strings) Explicit names of example data and/or model files to be copied. Must be in the example list obtained by get_example_list()

example_nr

(numeric) Number of example data and model to be copied. If example_software is not specified, examples with example_nr for all software will be copied.

example_software

(string) Software of example data and model to be copied. Either “Monolix” or “NONMEM” available. If example_nr is not specified, all examples for this software will be copied.

pkg_name

(string) Only required in development phase

Author

Dominic Bräm

Examples

Run this code
if (FALSE) {
copy_examples("path/to/target/folder",
              examples = c("data_example1_mlx.csv","mlx_example1_model.txt"))
copy_examples("path/to/target/folder",example_nr = 1)
copy_examples("path/to/target/folder",example_software = "Monolix")
copy_examples("path/to/target/folder",example_nr = 1, example_software = "NONMEM")
}

Run the code above in your browser using DataLab