R/onAttach.R

Defines functions .onAttach

#' @importFrom utils packageVersion
.onAttach = function( libname, pkgname ) {
  # Runs when attached to search() path such as by library() or require()
  if ( interactive() ) {
    packageStartupMessage( 'Welcome to msmtools v', as.character( packageVersion( "msmtools" ) ),
                           '! An easy way to build augmented longitudinal datasets to be used with msm' )
    packageStartupMessage( 'msmtools requires data.table (>= 1.9.6), msm (>= 1.6) and survival (>= 2.38.0)' )
    packageStartupMessage( 'For help ?msmtools or vignette( "msmtools" )' )
    packageStartupMessage( 'If you find bugs, please report them at https://github.com/contefranz/msmtools/issues' )
  }
}
contefranz/msmtools documentation built on May 13, 2019, 10:50 p.m.