R/zzz.R

Defines functions .RegisterKeywords .RegisterProposals .onLoad .onAttach

#  File R/zzz.R in package ergm.rank, part of the
#  Statnet suite of packages for network analysis, https://statnet.org .
#
#  This software is distributed under the GPL-3 license.  It is free,
#  open source, and has the attribution requirements (GPL Section 7) at
#  https://statnet.org/attribution .
#
#  Copyright 2008-2022 Statnet Commons
################################################################################
#' @useDynLib ergm.rank
#' @import statnet.common ergm network
.onAttach <- function(libname, pkgname){
  sm <- statnetStartupMessage("ergm.rank",c("statnet"),FALSE)
  if(!is.null(sm)) packageStartupMessage(sm)
}

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

.RegisterProposals <- function(){
  ergm_proposal_table("c", "CompleteOrder", "",  0, "random", "AlterSwap")
}

.RegisterKeywords <- function(){
  ergm_keyword(name="ordinal", short="ordinal", description="depends on edge values only through their rank among other edge values", popular=TRUE, package="ergm.rank")
}

Try the ergm.rank package in your browser

Any scripts or data that you put into this service are public.

ergm.rank documentation built on June 2, 2022, 1:06 a.m.