Skip to contents

mums2 contains a number of example files in the inst/extdata directory. This function makes them accessible in documentation that shows how file paths are used in function examples.

Usage

mums2_example(file = NULL)

Arguments

file

Name of a file. If NULL, all examples files will be listed.

Value

A file path to example data stored in the inst/extdata directory of the package.

returns a character object

Examples

mums2_example()
#> [1] "230112_botryllus_peaktable.csv"     "MSMS-Neg-Respect.msp"              
#> [3] "botryllus_pt_small.csv"             "botryllus_v2.gnps.mgf"             
#> [5] "ion_masses"                         "massbank_example_data.msp"         
#> [7] "massbank_example_data_negative.msp" "meta_data_boryillus.csv"           

mums2_example("massbank_example_data.msp")
#> [1] "/home/runner/work/_temp/Library/mums2/extdata/massbank_example_data.msp"