R/sizeSpectra.R

## As instructed from using usethis::use_tibble() [else saved data tibbles don't
##  get used properly]

## usethis namespace: start
#' @importFrom tibble tibble
#' @importFrom grDevices dev.new dev.off png
#' @importFrom graphics abline axis box hist legend lines matlines mtext par
#'   plot points rect segments strwidth text
#' @importFrom stats coef confint lm na.omit nlm predict qchisq quantile runif
#' @importFrom utils data
#'
## usethis namespace: end
NULL

# As for gfiphc repo, need these to avoid warnings related to dplyr
# commands (e.g. referring to the column names withing dplyr::filter()).
# Copied from the warning given by check() (that puts them alphabetical, then
# had some more to add at the end).
if (getRversion() >= "2.15.1") utils::globalVariables(c("."))
if (getRversion() >= "2.15.1") {
  utils::globalVariables(c(
           "Count",
           "Number",
           "Year",
           "aboveCutOff",
           "b.known",
           "binCount",
           "binCountNorm",
           "binMax",
           "binMid",
           "binMin",
           "binSum",
           "binSumNorm",
           "binWidth",
           "biomass",
           "bodyMass",
           "cexAxis",
           "color.gradient",
           "confMax",
           "confMin",
           "cumProp",
           "cumPropSim",
           "cumSum",
           "desc",
           "inConf",
           "lowCount",
           "n",
           "n_s",
           "stdErr",
           "sum.log.x",
           "tbl_df",
           "totalBiom",
           "totalBiomNorm",
           "ungroup",
           "vertCol",
           "vertThick",
           "wmax",
           "wmaxSpecies",
           "wmin",
           "wminSpecies",
           "xbigticks",
           "xmax",
           "xmin",
           "xsmallticks",
           "Method",
           "SpecCode",
           "fullResults",
           "lenEnd",
           "lenMid",
           "lenStart",
           "massEnd",
           "massStart",
           "maxWmax",
           "speccode",
           "species",
           "wWidth"
  ))
}
andrew-edwards/sizeSpectra documentation built on June 28, 2023, 7:09 p.m.