R/makefunction.R

Defines functions makefunction

# TODO: Add comment
# 
# Author: jeroen
###############################################################################


makefunction <- function(myfun){

	if(!is.function(myfun)){
		stop("code is not a function.")
	}
	
	#we don't care about the environment
	environment(myfun) <- globalenv();
	return(myfun);
}
jeroenooms/opencpu.tools documentation built on May 19, 2019, 6:16 a.m.