Skip to contents

This function checks whether the necessary files for the `point` read functions are included in the directory.

Usage

ICdir_chk(directory, types = c("is_txt", "chk_is", "stat"))

Arguments

directory

A path or connection to a directory containing raw ion count data files.

types

Regular expression for the required file extensions. Default searches for files ending with .is_txt, .chk_is, and .stat

Value

A logical indicating whether the directory is suitable for `point`

Examples

ICdir_chk(point_example("2018-01-19-GLENDON"))
#> $chk_is
#>                                                                                                                       2018-01-19-GLENDON_1_1 
#> "/home/runner/.cache/R/renv/library/point-ffcd8613/R-4.2/x86_64-pc-linux-gnu/point/extdata/2018-01-19-GLENDON/2018-01-19-GLENDON_1_1.chk_is" 
#>                                                                                                                       2018-01-19-GLENDON_1_2 
#> "/home/runner/.cache/R/renv/library/point-ffcd8613/R-4.2/x86_64-pc-linux-gnu/point/extdata/2018-01-19-GLENDON/2018-01-19-GLENDON_1_2.chk_is" 
#>                                                                                                                       2018-01-19-GLENDON_1_3 
#> "/home/runner/.cache/R/renv/library/point-ffcd8613/R-4.2/x86_64-pc-linux-gnu/point/extdata/2018-01-19-GLENDON/2018-01-19-GLENDON_1_3.chk_is" 
#> 
#> $is_txt
#>                                                                                                                       2018-01-19-GLENDON_1_1 
#> "/home/runner/.cache/R/renv/library/point-ffcd8613/R-4.2/x86_64-pc-linux-gnu/point/extdata/2018-01-19-GLENDON/2018-01-19-GLENDON_1_1.is_txt" 
#>                                                                                                                       2018-01-19-GLENDON_1_2 
#> "/home/runner/.cache/R/renv/library/point-ffcd8613/R-4.2/x86_64-pc-linux-gnu/point/extdata/2018-01-19-GLENDON/2018-01-19-GLENDON_1_2.is_txt" 
#>                                                                                                                       2018-01-19-GLENDON_1_3 
#> "/home/runner/.cache/R/renv/library/point-ffcd8613/R-4.2/x86_64-pc-linux-gnu/point/extdata/2018-01-19-GLENDON/2018-01-19-GLENDON_1_3.is_txt" 
#> 
#> $stat
#>                                                                                                                     2018-01-19-GLENDON_1_1 
#> "/home/runner/.cache/R/renv/library/point-ffcd8613/R-4.2/x86_64-pc-linux-gnu/point/extdata/2018-01-19-GLENDON/2018-01-19-GLENDON_1_1.stat" 
#>                                                                                                                     2018-01-19-GLENDON_1_2 
#> "/home/runner/.cache/R/renv/library/point-ffcd8613/R-4.2/x86_64-pc-linux-gnu/point/extdata/2018-01-19-GLENDON/2018-01-19-GLENDON_1_2.stat" 
#>                                                                                                                     2018-01-19-GLENDON_1_3 
#> "/home/runner/.cache/R/renv/library/point-ffcd8613/R-4.2/x86_64-pc-linux-gnu/point/extdata/2018-01-19-GLENDON/2018-01-19-GLENDON_1_3.stat" 
#>