From a88779319c2f5a9f69b9b1b6b3a75b98453afe3d Mon Sep 17 00:00:00 2001 From: rhijmans Date: Mon, 8 Jul 2024 07:26:32 -0700 Subject: [PATCH] remove getData --- R/getData.R | 8 +++++++- man/getData.Rd | 14 +++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/R/getData.R b/R/getData.R index 48302c5d..df0ab4b2 100644 --- a/R/getData.R +++ b/R/getData.R @@ -4,9 +4,15 @@ # Version 0.9 # October 2008 - getData <- function(name='GADM', download=TRUE, path='', ...) { + stop("getData has been removed. Please use the geodata package instead.") + +} + + +.getData <- function(name='GADM', download=TRUE, path='', ...) { + message("getData will stop working soon!\n. Please use the geodata package instead.\n Going to sleep for 15 seconds...") diff --git a/man/getData.Rd b/man/getData.Rd index e5434bcc..f4a983fb 100644 --- a/man/getData.Rd +++ b/man/getData.Rd @@ -5,23 +5,15 @@ \title{Get geographic data } \description{ -This function has been deprecated. See the geodata package for access to more recent versions of the data available through this function, and for many other datasets. +This function has been deprecated and does not work anymore. } \usage{ -getData(name, download=TRUE, path="", ...) +getData(...) ccodes() } \arguments{ - \item{name}{Data set name} - \item{download}{logical} - \item{path}{character} - \item{...}{Additional arguments} + \item{...}{arguments} } -\value{ -Raster* or Spatial* -} - -\keyword{ spatial }