## R >= 2.8.0 passes package metadata to citation().
if(!exists("meta") || is.null(meta)) meta <- packageDescription("StreamMetabolism")
year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s.", meta$Version)

bibentry(bibtype = "Manual",
	 title = {
             paste("Stream Metabolism-A package for calculating single station metabolism from diurnal Oxygen curves")
         },
	 author = c(
           person(given = "Stephen", family = "Sefick",
                  email = "ssefick@gmail.com")),
         year = year,
	 	  note = {
             paste(note,
               		 "by Stephen Sefick Jr.")
         },
	 url = "https://cran.r-project.org/package=StreamMetabolism",
	 textVersion = {
             paste("Stephen Sefick Jr.",
	           sprintf("(%s).", year),
                   "Stream Metabolism-A package for calculating single station metabolism from diurnal Oxygen curves",
		   note)
         })
