Dealing with change in a dependency

If you’re responding to not-yet-release: - You can change to work the function before and after the change. - To release your package at any time.

your_function <- function(...) {
  if (packageVersion("otherpkg") >= "1.3.9000") {
    otherpkg::their_new_function()
  } else {
    otherpkg::their_old_function()
  }
  # the rest of the function
}