R package with misc functions