R/MATSS-package.R

Defines functions .onAttach

#' @title Macroecological Analayses of Time Series Structure
#'
#' @description Support for macroecological analyses of time series. The intent 
#'   of the package is to enable end users to run analyses on a collection of
#'   population and community time series data. Functions are provided to 
#'   download and import datasets, produce reproducible workflows using the 
#'   `drake` package, and for generating research compendia with code and 
#'   reports.
#' 
#' @name MATSS
#'
#' @docType package
#'
#' @keywords package
#'
NULL

.onAttach <- function(libname, pkgname) {
    # packageStartupMessage('Please look at our data formats by running `vignette("data-formats")`')
}

#' @importFrom rlang .data

## quiets concerns of R CMD check re: variables used in NSE functions
if (getRversion() >= "2.15.1") utils::globalVariables(
    c("analysis", "citation_text", "combine", "cross", "data", 
      "dataset", "file_in", "fun", "location_id", "map", "region", "route", 
      "target", "timeperiod_id", "trigger")
)

#' @title dragons dataset
#'
#' @description A dataset containing example timeseries for some dragons.
#'
#' @format A list with 3 elements:
#' \describe{
#'   \item{abundance}{a data.frame with abundances for 3 dragons}
#'   \item{covariates}{a data.frame with times of observations and effort and precip data}
#'   \item{metadata}{a list with:
#'     `timename` - the name of the time column in covariates,
#'     `period` - the gap between successive observations, 
#'     `authors` - the authors of the dataset, 
#'     `species_table` - information about the species observed}
#' }
"dragons"
weecology/MATSS documentation built on May 15, 2020, 7:03 p.m.