R/zzz.R

Defines functions Plot_Points_and_Bounds_Fn Plot_data_and_knots Plot_range_shifts PlotAniso_Fn plot_residuals Check_encounter_prob PlotResultsOnMap_Fn PlotIndex_Fn QQ_Fn MapDetails_Fn Spatial_Information_Fn Prepare_Extrapolation_Data_Fn .onAttach

Documented in Check_encounter_prob MapDetails_Fn PlotAniso_Fn Plot_data_and_knots PlotIndex_Fn Plot_Points_and_Bounds_Fn Plot_range_shifts plot_residuals PlotResultsOnMap_Fn Prepare_Extrapolation_Data_Fn QQ_Fn Spatial_Information_Fn

#.onLoad <- function(libname, pkgname) {
#}

.onAttach <- function(libname, pkgname) {
  packageStartupMessage("###########################################################################################")
  packageStartupMessage("Loading package SpatialDeltaGLMM, developed by James Thorson for the Northwest Fisheries Science Center")
  packageStartupMessage("For details and citation guidance, please see https://github.com/pfmc-assessments/geostatistical_delta-GLMM/#description-of-package")
  packageStartupMessage("###########################################################################################")
  if( !"INLA" %in% utils::installed.packages()[,1] ){
    packageStartupMessage("Installing INLA...")
    utils::install.packages("INLA", repos="https://www.math.ntnu.no/inla/R/stable")
  }
  #if( !"TMB" %in% utils::installed.packages()[,1] ){
  #  packageStartupMessage("Installing TMB...")
  #  devtools::install_github("kaskr/adcomp/TMB")
  #}
  #if( !"TMBhelper" %in% utils::installed.packages()[,1] ){
  #  packageStartupMessage("Installing package: TMBhelper...")
  #  devtools::install_github("kaskr/TMB_contrib_R/TMBhelper")
  #}
}

#' Copy of FishStatsUtils::make_extrapolation_data
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::Prepare_Extrapolation_Data_Fn} to see list of arguments and usage
#' @export
Prepare_Extrapolation_Data_Fn = function( ... ){
  .Deprecated( new="FishStatsUtils::make_extrapolation_info" )
  FishStatsUtils::make_extrapolation_info( ... )
}

#' Copy of FishStatsUtils::make_spatial_info
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::make_spatial_info} to see list of arguments and usage
#' @export
Spatial_Information_Fn = function( ... ){
  .Deprecated( new="FishStatsUtils::make_spatial_info" )
  FishStatsUtils::make_spatial_info( ... )
}

#' Copy of FishStatsUtils::make_map_info
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::make_map_info} to see list of arguments and usage
#' @export
MapDetails_Fn = function( ... ){
  .Deprecated( new="FishStatsUtils::make_map_info" )
  FishStatsUtils::make_map_info( ... )
}

#' Copy of FishStatsUtils::plot_quantile_diagnostic
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::plot_quantile_diagnostic} to see list of arguments and usage
#' @export
QQ_Fn = function( ... ){
  .Deprecated( new="FishStatsUtils::plot_quantile_diagnostic" )
  FishStatsUtils::plot_quantile_diagnostic( ... )
}

#' Copy of FishStatsUtils::plot_biomass_index
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::plot_biomass_index} to see list of arguments and usage
#' @export
PlotIndex_Fn = function( ... ){
  .Deprecated( new="FishStatsUtils::plot_biomass_index" )
  FishStatsUtils::plot_biomass_index( ... )
}

#' Copy of FishStatsUtils::plot_maps
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::plot_maps} to see list of arguments and usage
#' @export
PlotResultsOnMap_Fn = function( ... ){
  .Deprecated( new="FishStatsUtils::plot_maps" )
  FishStatsUtils::plot_maps( ... )
}

#' Copy of FishStatsUtils::plot_encounter_diagnostic
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::plot_encounter_diagnostic} to see list of arguments and usage
#' @export
Check_encounter_prob = function( ... ){
  .Deprecated( new="FishStatsUtils::plot_encounter_diagnostic" )
  FishStatsUtils::plot_encounter_diagnostic( ... )
}

#' Copy of FishStatsUtils::plot_residuals
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::plot_residuals} to see list of arguments and usage
#' @export
plot_residuals = function( ... ){
  .Deprecated( new="FishStatsUtils::plot_residuals" )
  FishStatsUtils::plot_residuals( ... )
}

#' Copy of FishStatsUtils::plot_anisotropy
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::plot_anisotropy} to see list of arguments and usage
#' @export
PlotAniso_Fn = function( ... ){
  .Deprecated( new="FishStatsUtils::plot_anisotropy" )
  FishStatsUtils::plot_anisotropy( ... )
}

#' Copy of FishStatsUtils::plot_range_index
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::plot_range_index} to see list of arguments and usage
#' @export
Plot_range_shifts = function( ... ){
  .Deprecated( new="FishStatsUtils::plot_range_index" )
  FishStatsUtils::plot_range_index( ... )
}

#' Copy of FishStatsUtils::plot_data
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::plot_data} to see list of arguments and usage
#' @export
Plot_data_and_knots = function( ... ){
  .Deprecated( new="FishStatsUtils::plot_data" )
  FishStatsUtils::plot_data( ... )
}

#' Copy of FishStatsUtils::plot_lines
#'
#' Included for continuity when using old scripts
#'
#' Please use \code{?FishStatsUtils::plot_lines} to see list of arguments and usage
#' @export
Plot_Points_and_Bounds_Fn = function( ... ){
  .Deprecated( new="FishStatsUtils::plot_lines" )
  FishStatsUtils::plot_lines( ... )
}
nwfsc-assess/geostatistical_delta-GLMM documentation built on July 8, 2023, 4:49 a.m.