Skip to content

Commit 7efc456

Browse files
author
kalibera
committed
Mention -f option of curl in documentation (related to PR#17543).
git-svn-id: https://svn.r-project.org/R/trunk@88697 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent cb79504 commit 7efc456

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/library/utils/man/download.file.Rd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ download.file(url, destfile, method, quiet = FALSE, mode = "w",
108108
(For method \code{"libcurl"}, messages will quote the endpoint of
109109
redirections.)
110110

111+
When the file is not found on the server, the \code{"curl"} method will
112+
typically download a HTML file stating that and report success. To
113+
instead get an error in that case, use argument \code{extra = "-f"}.
114+
111115
See \code{\link{url}} for how \samp{file://} URLs are interpreted,
112116
especially on Windows. The \code{"internal"} and \code{"wininet"}
113117
methods do not percent-decode, but the \code{"libcurl"} and

0 commit comments

Comments
 (0)