Various R utility/wrapper scripts