view fshlp.R @ 7:882f2f20028b draft

planemo upload for repository https://github.com/workflow4metabolomics/lcmsmatching.git commit 608d9e59a0d2dcf85a037968ddb2c61137fb9bce
author prog
date Sun, 09 Apr 2017 10:44:21 -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))
	}
}