R/zzz.R

Defines functions .onAttach

######################################################################
#
# zzz.R
#
# Edited by Zack Almquist
# Written by Carter T. Butts <[email protected]>; based on an original by
# Carter T. Butts <[email protected]>, David Hunter <[email protected]>,
# and Mark S. Handcock <[email protected]>.
# Last Modified 7/14/10
# Licensed under the GNU General Public License version 3 or later
#
# Part of the R/census package
#
# .First.lib is run when the package is loaded with library(UScensus2000)
#
######################################################################

#.onLoad <- function(libname, pkgname){
#dscr <- utils::packageDescription('UScensus2000')
#     packageStartupMessage("\n")
#     packageStartupMessage(paste('Package ',dscr$Package,': ',dscr$Title,"\n",
#               "Version ",dscr$Version,
#               " created on ", dscr$Date ,".\n", sep=""))
#    packageStartupMessage(paste("Zack Almquist, University of California-Irvine
#ne\n",sep=""))
#    packageStartupMessage('For citation information, type citation("UScensus2010").')
#    packageStartupMessage('Type help(package=UScensus2000) to get started.')
#}

.onAttach <- function(libname, pkgname){
  	temp<-packageDescription("UScensus2000")
  	msg<-paste(temp$Package,": ",temp$Title,"\n",
      "Version ",temp$Version,
      " created on ",
      temp$Date,".\n", sep="")
  msg<-paste(msg,"copyright (c) 2014, Zack W. Almquist, University of Minnesota\n",sep="")

  msg<-paste(msg,'For citation information, type citation("UScensus2000").\n')
  msg<-paste(msg,'Type help(package="UScensus2000") to get started.\n')
  packageStartupMessage(msg)
}

Try the UScensus2000 package in your browser

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

UScensus2000 documentation built on May 2, 2019, 5:13 p.m.