R package of miscellaneous functions