## Publication year of the current package version (0.2.1, 2026).
## Update both the year below and this note when a new version is released.
vers <- if (!is.null(meta$Version)) meta$Version else "0.2.1"

bibentry(
  bibtype  = "Manual",
  header   = "To cite the taperNOR software package:",
  title    = "{taperNOR}: Taper, Volume and Bark Thickness Models for Spruce, Pine and Birch in Norway",
  author   = c(
    person("Johannes", "Rahlf"),
    person(c("Endre", "Hofstad"), "Hansen")
  ),
  year     = "2026",
  note     = paste("R package version", vers),
  url      = "https://github.com/SmartForest-no/taperNOR"
)

bibentry(
  bibtype  = "Article",
  header   = "To cite the underlying taper, volume and bark thickness models:",
  title    = "Taper, volume, and bark thickness models for spruce, pine, and birch in Norway",
  author   = c(
    person("Endre", "Hansen"),
    person("Johannes", "Rahlf"),
    person("Rasmus", "Astrup"),
    person("Terje", "Gobakken")
  ),
  journal  = "Scandinavian Journal of Forest Research",
  year     = "2023",
  doi      = "10.1080/02827581.2023.2243821"
)

bibentry(
  bibtype  = "Article",
  title    = "Correction to: Taper, volume, and bark thickness models for spruce, pine, and birch in Norway",
  author   = c(
    person("Endre", "Hansen"),
    person("Johannes", "Rahlf"),
    person("Rasmus", "Astrup"),
    person("Terje", "Gobakken")
  ),
  journal  = "Scandinavian Journal of Forest Research",
  year     = "2024",
  doi      = "10.1080/02827581.2024.2358467"
)
