From 676554492bbb8509998797a6271afd14340931dc Mon Sep 17 00:00:00 2001 From: CeresBarros Date: Mon, 12 Feb 2024 16:21:01 -0800 Subject: [PATCH] rm \dontrun{} in downcale example --- R/downscale.R | 2 -- man/downscale.Rd | 2 -- 2 files changed, 4 deletions(-) diff --git a/R/downscale.R b/R/downscale.R index df856345..e1480f1f 100644 --- a/R/downscale.R +++ b/R/downscale.R @@ -36,7 +36,6 @@ #' #' @export #' @examples -#' \dontrun{ #' dbCon <- data_connect() #' on.exit(try(pool::poolClose(dbCon))) #' xyz <- data.frame(lon = runif(10, -140, -106), lat = runif(10, 37, 61), elev = runif(10), id = 1:10) @@ -56,7 +55,6 @@ #' terra::plot(historic[[1]]) #' #' downscale(xyz, normal, gcm = NULL, historic = historic, ppt_lr = FALSE) -#' } downscale <- function(xyz, normal, gcm = NULL, historic = NULL, gcm_ts = NULL, gcm_hist = NULL, historic_ts = NULL, return_normal = FALSE, vars = sort(sprintf(c("PPT%02d", "Tmax%02d", "Tmin%02d"), sort(rep(1:12, 3)))), ppt_lr = FALSE, nthread = 1L, out_spatial = FALSE, plot = NULL) { diff --git a/man/downscale.Rd b/man/downscale.Rd index a1bc1532..16092c05 100644 --- a/man/downscale.Rd +++ b/man/downscale.Rd @@ -70,7 +70,6 @@ While less user-friendly than \code{\link[=climr_downscale]{climr_downscale()}}, We recommend \code{\link[=climr_downscale]{climr_downscale()}} for most purposes. } \examples{ -\dontrun{ dbCon <- data_connect() on.exit(try(pool::poolClose(dbCon))) xyz <- data.frame(lon = runif(10, -140, -106), lat = runif(10, 37, 61), elev = runif(10), id = 1:10) @@ -91,7 +90,6 @@ terra::plot(historic[[1]]) downscale(xyz, normal, gcm = NULL, historic = historic, ppt_lr = FALSE) } -} \seealso{ \code{\link[=gcm_input]{gcm_input()}}, \code{\link[=historic_input]{historic_input()}}, \code{\link[=list_variables]{list_variables()}} }