Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HYDAT citation function #167

Open
boshek opened this issue Nov 15, 2021 · 1 comment
Open

Add HYDAT citation function #167

boshek opened this issue Nov 15, 2021 · 1 comment

Comments

@boshek
Copy link
Collaborator

boshek commented Nov 15, 2021

Using utils::bibentry for a way to cite HYDAT.

@boshek
Copy link
Collaborator Author

boshek commented Mar 15, 2022

Something like this:|

hy_citation <- function() {
  title <- paste0(
    "Extracted from Environment and Climate Change Canada’s HYDAT.sqlite, released on ",
    as.Date(hy_version()$Date)
  )
  
  
  bibentry(
    bibtype = "Manual",
    title = title,
    author = person("Environment and Climate Change Canada"),
    year = format(hy_version()$Date, "%Y"),
    url = "https://collaboration.cmc.ec.gc.ca/cmc/hydrometrics/www/"
  )
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant