R/units.R

Defines functions .unitless .setUnitsMode

# compatibility function for units

.setUnitsMode <- function() {
  if (requireNamespace("units", quietly = TRUE)) {
    return(units::units_options("set_units_mode"))
  } else {
    return(NULL)
  }
}

.unitless <- function() {
  if (requireNamespace("units", quietly = TRUE)) {
    return(units::unitless)
  } else {
    return(NULL)
  }
}

Try the RxODE package in your browser

Any scripts or data that you put into this service are public.

RxODE documentation built on March 23, 2022, 9:06 a.m.