Convenience function that wraps:

  logger.setup()
  logger.setLevel(WARN)
  setSpatialDataDir('~/Data/Spatial')
  loadSpatialData('NaturalEarthAdm1')

If file logging is desired, these commands should be run individually with output log files specified as arguments to logger.setup().

initializeMazamaSpatialUtils(
  spatialDataDir = "~/Data/Spatial",
  stateCodeDataset = "NaturalEarthAdm1"
)

Arguments

spatialDataDir

directory where spatial datasets are created

stateCodeDataset

MazamaSpatialUtils dataset returning ISO 3166-2 alpha-2 stateCodes

See also

{link{logger.setup}