diff --git a/DESCRIPTION b/DESCRIPTION index dcb2b83..54847db 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,10 +1,14 @@ Package: dlw Type: Package Title: R Client for the internal Datalibweb API of the World Bank -Version: 0.1.1 -Authors@R: person("R.Andres", "Castaneda", +Version: 0.1.2 +Authors@R: c( + person("R.Andres", "Castaneda", email = "acastanedaa@worldbank.org", - role = c("aut", "cre")) + role = c("aut", "cre")), + person("Ben", "Brunckhorst", + email = "84766772+bbrunckh@users.noreply.github.com", + role = "ctb")) Description: More about what it does (maybe more than one line). Continuation lines should be indented. License: MIT + file LICENSE @@ -14,7 +18,7 @@ URL: https://github.com/worldbank/dlw, https://worldbank.github.io/dlw/ BugReports: https://github.com/worldbank/dlw/issues Depends: R (>= 3.5) -RoxygenNote: 7.3.2 +RoxygenNote: 7.3.3 Imports: cli, data.table, @@ -23,6 +27,7 @@ Imports: httr2, keyring, pins, + qs2, rlang, stats Suggests: diff --git a/NEWS.md b/NEWS.md index 2efd070..c03bb9d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,5 @@ +# dlw 0.1.2 + # dlw 0.1.1 * fixes issue in #14 diff --git a/R/dlw_get_data.R b/R/dlw_get_data.R index c45dc5f..a8fcd5c 100644 --- a/R/dlw_get_data.R +++ b/R/dlw_get_data.R @@ -9,8 +9,8 @@ #' in option dlw.local_dir which is set initially as "". #' @param local logical: whether or not to save and read data locally. default #' is TRUE if `local_dir` exists. -#' @param format character: File format to use for pinning data ('parquet' -#' [default] or 'qs') +#' @param format character: File format to use for pinning data ('qs2' +#' [default] or 'parquet') #' @param local_overwrite logical. Whether to overwrite any saved data. Default #' is FALSE #' @param version numeric: Version of the pin to read (for pinning data @@ -69,7 +69,7 @@ dlw_get_data <- function(country_code, #' @inheritParams dlw_get_data #' @inheritParams dlw_read #' @param filename character: Name of the file to save/read (required) -#' @param format character: File format to use for pinning data ('qs' +#' @param format character: File format to use for pinning data ('qs2' #' [default] or 'parquet') #' @returns A list with the board and pin_name used #' @keywords internal @@ -89,7 +89,7 @@ dlw_download <- function(country_code, # prepare the args for request dots <- list(...) - endpoint <- "FileInformation/GetFileInfo" + endpoint <- "FileInformationInternal/GetFileInfo" args <- c(list(Country = country_code, method = "POST", Server = server, diff --git a/R/zzz.R b/R/zzz.R index 6efa81b..a2f0bb9 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -5,7 +5,7 @@ op.dlw <- list( cli.ignore_unknown_rstudio_theme = TRUE, dlw.local_dir = Sys.getenv("DLW_local_dir"), dlw.board_type = c("folder", "local"), - dlw.format = c("qs", "parquet"), + dlw.format = c("qs2", "parquet"), dlw.download_formats = c("dta") # we could add more later. ) diff --git a/man/dlw_download.Rd b/man/dlw_download.Rd index 773906f..cc97c8d 100644 --- a/man/dlw_download.Rd +++ b/man/dlw_download.Rd @@ -24,7 +24,7 @@ dlw_download( \item{pin_name}{The name of the pin (as returned by dlw_download)} -\item{format}{character: File format to use for pinning data ('qs' +\item{format}{character: File format to use for pinning data ('qs2' [default] or 'parquet')} \item{server}{character: in case we have more than one server. default is GMD} diff --git a/man/dlw_get_data.Rd b/man/dlw_get_data.Rd index f53e932..1bbae7c 100644 --- a/man/dlw_get_data.Rd +++ b/man/dlw_get_data.Rd @@ -30,8 +30,8 @@ in option dlw.local_dir which is set initially as "".} \item{local}{logical: whether or not to save and read data locally. default is TRUE if `local_dir` exists.} -\item{format}{character: File format to use for pinning data ('parquet' -[default] or 'qs')} +\item{format}{character: File format to use for pinning data ('qs2' +[default] or 'parquet')} \item{local_overwrite}{logical. Whether to overwrite any saved data. Default is FALSE}