require(Hmisc)

If Hmisc is not found, the function fails up front and requests that the user install the Hmisc package.