R/zzz.R

Defines functions .onLoad

#############################################################################
#     _   _____    ____        __  ____
#    / | / /   |  / __ )____ _/ /_/ __ \
#   /  |/ / /| | / __  / __ `/ __/ /_/ /
#  / /|  / ___ |/ /_/ / /_/ / /_/ _, _/
# /_/ |_/_/  |_/_____/\__,_/\__/_/ |_|
#
# R Tools for accessing and manipulating North American Bat Monitoring data
#
# Written by: Kyle Enns
#
# FILE DESCRIPTION:  This file contains functions that occur onLoad of package
#
# USGS DISCLAIMER:  This software is in the public domain because it contains
# materials that originally came from the U.S. Geological Survey, an agency
# of the United States Department of Interior. For more information, see the
# [official USGS copyright policy]
# (https://www.usgs.gov/visual-id/credit_usgs.html#copyright/
# "official USGS # copyright policy")
#
# Although this software program has been used by the U.S. Geological Survey
# (USGS), no warranty, expressed or implied, is made by the USGS or the U.S.
# Government as to the accuracy and functioning of the program and related
# program material nor shall the fact of distribution constitute any such
# warranty, and no responsibility is assumed by the USGS in connection
# therewith.
#
# This software is provided "AS IS."
#############################################################################

# On loading, the package needs to know its root.  This saves out the
#   root dir.
.onLoad = function(libname, pkgname){
  template_rmd = system.file("templates", "acoustic_stationary_report.Rmd",
    package = "nabatr")
  nabat_logo   = system.file("templates", "nabat_logo.png", package = "nabatr")

  # Shows message for path to project root
  # packageStartupMessage(template_rmd)
}
usgs/nabatr documentation built on Jan. 28, 2024, 7:10 a.m.