Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/library/base/man/connections.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ socketTimeout(socket, timeout = -1)
requests. It is ignored for non-HTTP URLs. The \code{User-Agent}
header, coming from the \code{HTTPUserAgent} option (see
\code{\link{options}}) is used as the first header, automatically.}
\item{compression}{integer in 0--9 (1--19 for \code{zstdfile}). The
\item{compression}{integer in 0--9 (1--22 for \code{zstdfile}). The
amount of compression to be applied when writing, from minimal to
maximal available. For \code{xzfile} and \code{zstdfile} can also
be negative: see the \sQuote{Compression} section.}
Expand Down
2 changes: 1 addition & 1 deletion src/main/connections.c
Original file line number Diff line number Diff line change
Expand Up @@ -2761,7 +2761,7 @@ attribute_hidden SEXP do_gzfile(SEXP call, SEXP op, SEXP args, SEXP env)
}
if(type == 3) {
compress = asInteger(CADDDR(args));
if(compress == NA_LOGICAL || abs(compress) > 19)
if(compress == NA_LOGICAL || abs(compress) > 22)
error(_("invalid '%s' argument"), "compress");
}
open = CHAR(STRING_ELT(sopen, 0)); /* ASCII */
Expand Down
Loading