structured functions as R package