data/penguins.R

delayedAssign("penguins", local({
  if (requireNamespace("tibble", quietly = TRUE)) {
    tibble::as_tibble(palmerpenguins:::penguins_df)
  } else {
    palmerpenguins:::penguins_df
  }
}))

delayedAssign("penguins_raw", local({
  if (requireNamespace("tibble", quietly = TRUE)) {
    tibble::as_tibble(palmerpenguins:::penguins_raw_df)
  } else {
    palmerpenguins:::penguins_raw_df
  }
}))
allisonhorst/palmerpenguins documentation built on Sept. 20, 2024, 12:05 p.m.