# if you want to delete "data.phen", run like this:
# delete_files_phen("data")
# The following example is more awkward
# because (only for these examples) the package must create a *temporary* file to actually delete
# create dummy PHEN files
file <- tempfile('delete-me-test') # no extension
# add extension and create an empty file
file.create( paste0(file, '.phen') )
# delete the PHEN file we just created
delete_files_phen(file)
Run the code above in your browser using DataLab