Skip to content

Commit 335be1f

Browse files
authored
RC 1.4.2 (#895)
* RC 1.4.2 * Increment version number to 1.4.2 * Deprecate support for archived qs * Redocument * Update test snapshot * Update `.Rbuildignore` * Why were these missing?! * One more missing snapshot
1 parent a0e6038 commit 335be1f

22 files changed

+201
-49
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616
^CRAN-RELEASE$
1717
^CRAN-SUBMISSION$
1818
^docker-compose.yml$
19+
^.claude/

DESCRIPTION

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: pins
33
Title: Pin, Discover, and Share Resources
4-
Version: 1.4.1.9000
4+
Version: 1.4.2
55
Authors@R: c(
66
person("Julia", "Silge", , "julia.silge@posit.co", role = c("cre", "aut"),
77
comment = c(ORCID = "0000-0002-3671-836X")),
@@ -56,7 +56,6 @@ Suggests:
5656
nanoparquet,
5757
openssl,
5858
paws.storage,
59-
qs,
6059
qs2,
6160
R.utils,
6261
rmarkdown,
@@ -73,4 +72,4 @@ Config/Needs/website: tidyverse/tidytemplate
7372
Config/testthat/edition: 3
7473
Encoding: UTF-8
7574
Roxygen: list(markdown = TRUE)
76-
RoxygenNote: 7.3.2
75+
RoxygenNote: 7.3.3

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# pins (development version)
1+
# pins 1.4.2
22

33
* Added support of the `qs2` format (#865, @atsyplenkov).
44

5+
* Removed support for the `qs` format (#895).
6+
57
* Added download progress bar for `board_url()` (#872, @lbm364dl).
68

79
* Added support for writing pins with multiple types, like `type = c("rds", "csv")` (#877, @lbm364dl).

R/board_connect_bundle.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ rsc_bundle_preview_index <- function(
105105
collapse = ", "
106106
),
107107
url_preview_style = if (!is.null(metadata$urls)) "" else "display:none",
108-
show_python_style = if (all(metadata$type %in% c("rds", "qs", "qs2"))) {
108+
show_python_style = if (all(metadata$type %in% c("rds", "qs2"))) {
109109
"display:none"
110110
} else {
111111
""

R/pin-read-write.R

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ pin_read <- function(
7373
#' avoid potential clashes with the metadata that pins itself uses.
7474
#' @param type File types used to save `x` to disk. Supports a single type or a
7575
#' vector of types (to pin in more than one format. Each type must be one of
76-
#' "csv", "json", "rds", "parquet", "arrow", "qs", or "qs2". If not supplied,
76+
#' "csv", "json", "rds", "parquet", "arrow", or "qs2". If not supplied,
7777
#' will use JSON for bare lists and RDS for everything else. Be aware that CSV
78-
#' and JSON are plain text formats, while RDS, Parquet, Arrow,
79-
#' [qs](https://CRAN.R-project.org/package=qs), and
78+
#' and JSON are plain text formats, while RDS, Parquet, Arrow, and
8079
#' [qs2](https://CRAN.R-project.org/package=qs2) are binary formats.
8180
#' @param versioned Should the pin be versioned? The default, `NULL`, will
8281
#' use the default for `board`
@@ -111,11 +110,11 @@ pin_write <- function(
111110
)
112111
}
113112
if (!is_null(type) && any("qs" %in% type)) {
114-
lifecycle::deprecate_soft(
113+
lifecycle::deprecate_stop(
115114
when = "1.4.2",
116115
what = I('The file type "qs"'),
117116
with = I('`type = "qs2"`'),
118-
details = "The `qs` format will be deprecated soon: https://github.com/qsbase/qs/issues/103"
117+
details = "The qs package has been archived."
119118
)
120119
}
121120

@@ -199,7 +198,6 @@ object_write <- function(x, path, type = "rds", call) {
199198
pickle = abort("'pickle' pins not supported in R"),
200199
joblib = abort("'joblib' pins not supported in R"),
201200
csv = utils::write.csv(x, path, row.names = FALSE),
202-
qs = write_qs(x, path),
203201
qs2 = write_qs2(x, path)
204202
)
205203

@@ -225,12 +223,6 @@ write_rds_test <- function(x, path) {
225223
invisible(path)
226224
}
227225

228-
write_qs <- function(x, path) {
229-
check_installed("qs")
230-
qs::qsave(x, path)
231-
invisible(path)
232-
}
233-
234226
write_qs2 <- function(x, path) {
235227
check_installed("qs2")
236228
qs2::qs_save(x, path)
@@ -250,7 +242,7 @@ write_arrow <- function(x, path) {
250242
}
251243

252244
object_types <-
253-
c("rds", "json", "parquet", "arrow", "pickle", "csv", "qs", "qs2", "file")
245+
c("rds", "json", "parquet", "arrow", "pickle", "csv", "qs2", "file")
254246

255247
object_read <- function(meta, type, call = caller_env()) {
256248
path <- fs::path(meta$local$dir, meta$file)
@@ -287,7 +279,6 @@ object_read <- function(meta, type, call = caller_env()) {
287279
pickle = abort("'pickle' pins not supported in R"),
288280
joblib = abort("'joblib' pins not supported in R"),
289281
csv = utils::read.csv(path),
290-
qs = read_qs(path),
291282
qs2 = read_qs2(path),
292283
file = cli_abort(c(
293284
"Cannot automatically read pin:",
@@ -309,11 +300,6 @@ object_read <- function(meta, type, call = caller_env()) {
309300
}
310301
}
311302

312-
read_qs <- function(path) {
313-
check_installed("qs")
314-
qs::qread(path, strict = TRUE)
315-
}
316-
317303
read_qs2 <- function(path) {
318304
check_installed("qs2")
319305
qs2::qs_read(path)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ board <- board_temp()
5656
board
5757
#> Pin board <pins_board_folder>
5858
#> Path:
59-
#> '/var/folders/hv/hzsmmyk9393_m7q3nscx1slc0000gn/T/RtmpYCNIH0/pins-28a721e60d44'
59+
#> '/var/folders/hl/v1lzqxfd07b3hgd2tt5cjcs40000gp/T/Rtmpcv8YZU/pins-2b2828988b4b'
6060
#> Cache size: 0
6161
```
6262

@@ -66,7 +66,7 @@ arguments: the board to pin to, an object, and a name:
6666
``` r
6767
board |> pin_write(head(mtcars), "mtcars")
6868
#> Guessing `type = 'rds'`
69-
#> Creating new version '20250903T205250Z-1a718'
69+
#> Creating new version '20260309T003903Z-5d990'
7070
#> Writing to pin 'mtcars'
7171
```
7272

cran-comments.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
## revdepcheck results
22

3-
We checked 7 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
3+
We checked 9 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
44

55
* We saw 0 new problems
6-
* We failed to check 0 packages
6+
* We failed to check 2 packages
7+
8+
Issues with CRAN packages are summarised below.
9+
10+
### Failed to check
11+
12+
* rAccess (NA)
13+
* whep (NA)

man/board_connect_url.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/board_url.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pin_read.Rd

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)