view fshlp.R @ 3:abfba8eb1c8d draft

planemo upload for repository https://github.com/workflow4metabolomics/lcmsmatching.git commit 494194bb501d1d7033613131865f7bd68976041c
author prog
date Tue, 14 Mar 2017 12:35:23 -0400
parents 3afe41d3e9e7
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))
	}
}