# .onLoad <- function(libname, pkgname) {
# }
.onAttach <- function(libname, pkgname) {
#if( getOption("repos")["CRAN"] == "@CRAN@" ){
# options(repos = c("CRAN" = "http://cran.us.r-project.org"))
#}
#if( !"INLA" %in% utils::installed.packages()[,1] ){
# packageStartupMessage("Installing package: INLA...")
#
# # Over-ride default install for R 3.5.0 through R 3.5.3
# Rvers = numeric_version(paste0(R.version[6:7],collapse="."))
# if( Rvers<numeric_version("3.6.0") & Rvers>numeric_version("3.5.0") ){
# utils::install.packages( "https://inla.r-inla-download.org/R/stable/bin/windows/contrib/3.5/INLA_18.07.12.zip" )
# }else{
# utils::install.packages("INLA", repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)
# }
#}
#if( !"TMBhelper" %in% utils::installed.packages()[,1] || utils::packageVersion("TMBhelper") < numeric_version("1.2.0") ){
# packageStartupMessage("Installing TMBhelper, or updating package because previously using version < 1.2.0")
# devtools::install_github("kaskr/TMB_contrib_R/TMBhelper")
#}
}
PlotLoadings = function( ... ){
.Deprecated( new="FishStatsUtils::plot_loadings" )
FishStatsUtils::plot_loadings( ... )
}
Rotate_Fn = function( ... ){
.Deprecated( new="FishStatsUtils::rotate_factors" )
FishStatsUtils::rotate_factors( ... )
}
Calc_Anisotropic_Mesh = function( ... ){
.Deprecated( new="FishStatsUtils::make_mesh" )
FishStatsUtils::make_mesh( ... )
}
Calc_Kmeans = function( ... ){
.Deprecated( new="FishStatsUtils::make_kmeans" )
FishStatsUtils::make_kmeans( ... )
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.