if( !exists("meta") || is.null(meta) )
    meta <- packageDescription( "RMTstat" )

citHeader( "To cite package ’RMTstat’ in publications use:" )
    
year <- sub( ".*(2[[:digit:]]{3})-.*", "\\1", meta$Date )
vers <- paste( "R package version", meta$Version )

citEntry( entry="Manual", 
          title="RMTstat: Distributions, Statistics and Tests derived from Random Matrix Theory", 
         author=personList( as.person( "Iain M. Johnstone" ),
                            as.person( "Zongming Ma" ),
                            as.person( "Patrick O. Perry" ),
                            as.person( "Morteza Shahram" ) ),
           year=year, 
           note=vers, 
    textVersion=paste( "Iain M. Johnstone, ",
                       "Patrick O. Perry, ",
                       "Zongming Ma, and " ,
                       "Morteza Shahram ",
                       "(", year, "). ",
                       "RMT: Distributions, Statistics and Tests derived from Random Matrix Theory. ",
                       vers, ".", 
                       sep="" ) ) 
