From 473d960cf9e3678a4686c91f586efb1bb506415d Mon Sep 17 00:00:00 2001 From: Mans Magnusson Date: Sat, 13 Jan 2024 17:14:03 +0100 Subject: [PATCH] Minor fix --- R/pxweb.R | 6 ++++-- man/pxweb.Rd | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/R/pxweb.R b/R/pxweb.R index 585f2610..8c9e19d0 100644 --- a/R/pxweb.R +++ b/R/pxweb.R @@ -21,8 +21,10 @@ #' #' @examples #' \dontrun{ -#' pxapi_1 <- pxweb(url = "https://api.scb.se/OV0104/v1/doris/sv/ssd/START/ME/ME0104/ME0104C/ME0104T24") -#' pxapi_2 <- pxweb(url = "https://api.scb.se/OV0104/v1/doris/sv") +#' pxapi_1 <- +#' pxweb("https://api.scb.se/OV0104/v1/doris/sv/ssd/START/ME/ME0104/ME0104C/ME0104T24") +#' pxapi_2 <- +#' pxweb(url = "https://api.scb.se/OV0104/v1/doris/sv") #' } #' #' @export diff --git a/man/pxweb.Rd b/man/pxweb.Rd index 97fb3274..2b00ba98 100644 --- a/man/pxweb.Rd +++ b/man/pxweb.Rd @@ -36,8 +36,10 @@ The url has been checked to be a pxweb api (through config) } \examples{ \dontrun{ -pxapi_1 <- pxweb(url = "https://api.scb.se/OV0104/v1/doris/sv/ssd/START/ME/ME0104/ME0104C/ME0104T24") -pxapi_2 <- pxweb(url = "https://api.scb.se/OV0104/v1/doris/sv") +pxapi_1 <- + pxweb("https://api.scb.se/OV0104/v1/doris/sv/ssd/START/ME/ME0104/ME0104C/ME0104T24") +pxapi_2 <- + pxweb(url = "https://api.scb.se/OV0104/v1/doris/sv") } }