Skip to contents

Returns named vector of absolute paths to test datasets.

Usage

get_test_dataset_paths(datasets_dir = NULL, pattern = "finalMAE_")

Arguments

datasets_dir

path to directory with datasets (default NULL). If NULL, then inst/testdata directory from gDRtestData will be used.

pattern

used to: (1) filter to qs files from the dataset_dir path and (2) prettify the labels of the files

Value

named vector of absolute paths

Author

Kamil Foltyński kamil.foltynski@contractors.roche.com

Examples


get_test_dataset_paths()
#>                                                                     combo_2dose_nonoise 
#>    "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_2dose_nonoise.qs" 
#>                                                                    combo_2dose_nonoise2 
#>   "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_2dose_nonoise2.qs" 
#>                                                                    combo_2dose_nonoise3 
#>   "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_2dose_nonoise3.qs" 
#>                                                                        combo_codilution 
#>       "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_codilution.qs" 
#>                                                                  combo_codilution_small 
#> "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_codilution_small.qs" 
#>                                                                            combo_matrix 
#>           "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_matrix.qs" 
#>                                                                      combo_matrix_small 
#>     "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_matrix_small.qs" 
#>                                                                            combo_triple 
#>           "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_triple.qs" 
#>                                                                                  medium 
#>                 "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_medium.qs" 
#>                                                                                   small 
#>                  "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_small.qs" 
#>                                                                          small_no_noise 
#>         "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_small_no_noise.qs" 
#>                                                                                 wLigand 
#>                "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_wLigand.qs" 
path <- system.file("testdata", package = "gDRtestData", mustWork = TRUE)
get_test_dataset_paths(path)
#>                                                                     combo_2dose_nonoise 
#>    "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_2dose_nonoise.qs" 
#>                                                                    combo_2dose_nonoise2 
#>   "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_2dose_nonoise2.qs" 
#>                                                                    combo_2dose_nonoise3 
#>   "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_2dose_nonoise3.qs" 
#>                                                                        combo_codilution 
#>       "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_codilution.qs" 
#>                                                                  combo_codilution_small 
#> "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_codilution_small.qs" 
#>                                                                            combo_matrix 
#>           "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_matrix.qs" 
#>                                                                      combo_matrix_small 
#>     "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_matrix_small.qs" 
#>                                                                            combo_triple 
#>           "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_combo_triple.qs" 
#>                                                                                  medium 
#>                 "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_medium.qs" 
#>                                                                                   small 
#>                  "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_small.qs" 
#>                                                                          small_no_noise 
#>         "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_small_no_noise.qs" 
#>                                                                                 wLigand 
#>                "/usr/local/lib/R/site-library/gDRtestData/testdata/finalMAE_wLigand.qs"