Mercurial > repos > prog > lcmsmatching
view fshlp.R @ 5:fb9c0409d85c draft
planemo upload for repository https://github.com/workflow4metabolomics/lcmsmatching.git commit 608d9e59a0d2dcf85a037968ddb2c61137fb9bce
author | prog |
---|---|
date | Wed, 19 Apr 2017 10:00:05 -0400 |
parents | e66bb061af06 |
children |
line wrap: on
line source
if ( ! exists('extname')) { # Do not load again if already loaded source('strhlp.R') ########### # EXTNAME # ########### extname <- function(path) { return(sub('^.*\\.([^.]*)$', '\\1', path, perl = TRUE)) } ############## # REMOVE EXT # ############## remove.ext <- function(path) { return(sub('\\.[^.]*$', '', path)) } }