From b724c699ef4c1a9b9b739282b6becf4ceb1f184a Mon Sep 17 00:00:00 2001 From: eblondel Date: Mon, 16 Dec 2024 23:14:31 +0100 Subject: [PATCH] fix saveSDMX example --- R/saveSDMX.R | 3 ++- man/saveSDMX.Rd | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/R/saveSDMX.R b/R/saveSDMX.R index 0ae594c..eafc6b4 100644 --- a/R/saveSDMX.R +++ b/R/saveSDMX.R @@ -11,7 +11,8 @@ #' @examples #' \donttest{ #' sdmx <- system.file("extdata","Example_Eurostat_2.0.xml", package="rsdmx") -#' saveSDMX(sdmx, "sdmx.rda") +#' sf <- tempfile(fileext = ".rda") +#' saveSDMX(sdmx, sf) #' } #' #' @export diff --git a/man/saveSDMX.Rd b/man/saveSDMX.Rd index a53ecd5..33262ce 100644 --- a/man/saveSDMX.Rd +++ b/man/saveSDMX.Rd @@ -18,7 +18,8 @@ saveSDMX(sdmxObj, file) \donttest{ sdmx <- system.file("extdata","Example_Eurostat_2.0.xml", package="rsdmx") - saveSDMX(sdmx, "sdmx.rda") + sf <- tempfile(fileext = ".rda") + saveSDMX(sdmx, sf) } }