neurogenomics / HPOExplorer

Functions for working with the Human Phenotype Ontology data
https://neurogenomics.github.io/HPOExplorer/
4 stars 1 forks source link

Print where files are being saved to #18

Closed bschilder closed 3 years ago

bschilder commented 3 years ago

I always find it helpful to print a message to the user exactly where a file is being saved (and what it's named) whenever applicable.

bschilder commented 3 years ago

eg

messager("Saving file ==> ",pheno_to_genes_txt_file)
bschilder commented 3 years ago

It's also a good idea to make sure the directory exists before trying to save there:

 dir.create(dirname(pheno_to_genes_txt_file),
               showWarnings = TRUE, recursive = TRUE)