diff --git a/NEWS.md b/NEWS.md index 8d1557e47..c8726e215 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,9 +1,17 @@ # pins (development version) +## Breaking changes + +* Changed `type = "csv"` to use R's default value for `stringsAsFactors` i.e. + `FALSE` (#664). + +## Other improvements + * Added vignette describing how to manage custom formats (#631, @ijlyttle). * Improved error message for `pin_versions()` (#657). + # pins 1.0.3 * The `arrow` package is now suggested, rather than imported (#644, @jonthegeek). diff --git a/R/pin-read-write.R b/R/pin-read-write.R index 2ea5df276..b608cf390 100644 --- a/R/pin-read-write.R +++ b/R/pin-read-write.R @@ -128,6 +128,7 @@ object_write <- function(x, path, type = "rds") { json = jsonlite::write_json(x, path, auto_unbox = TRUE), arrow = write_arrow(x, path), pickle = abort("'pickle' pins not supported in R"), + joblib = abort("'joblib' pins not supported in R"), csv = utils::write.csv(x, path, row.names = FALSE), qs = write_qs(x, path) ) @@ -183,7 +184,8 @@ object_read <- function(meta) { json = jsonlite::read_json(path, simplifyVector = TRUE), arrow = read_arrow(path), pickle = abort("'pickle' pins not supported in R"), - csv = utils::read.csv(path, stringsAsFactors = TRUE), + joblib = abort("'joblib' pins not supported in R"), + csv = utils::read.csv(path), qs = read_qs(path), file = abort(c( "Pin does not declare file type so can't be automatically read",