diff --git a/NEWS.md b/NEWS.md index f70aa2a..8f0a30f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,9 @@ * Fix #473, remove support for `qs` +Bug fixes +* Fix #475, add missing package availability checks for export methods + # rio 1.2.4 * Fix #463, export_list also allows ods and fods diff --git a/R/export_methods.R b/R/export_methods.R index 29a3769..d6a8be8 100644 --- a/R/export_methods.R +++ b/R/export_methods.R @@ -136,6 +136,7 @@ export_delim <- function(file, x, fwrite = lifecycle::deprecated(), sep = "\t", #' @export .export.rio_feather <- function(file, x, ...) { + .check_pkg_availability("arrow") .docall(arrow::write_feather, ..., args = list(x = x, sink = file)) } @@ -282,6 +283,7 @@ export_delim <- function(file, x, fwrite = lifecycle::deprecated(), sep = "\t", #' @export .export.rio_parquet <- function(file, x, ...) { + .check_pkg_availability("nanoparquet") .docall(nanoparquet::write_parquet, ..., args = list(x = x, file = file)) }