From jeroen.ooms at stat.ucla.edu  Thu Feb 18 12:01:18 2016
From: jeroen.ooms at stat.ucla.edu (Jeroen Ooms)
Date: Thu, 18 Feb 2016 12:01:18 +0100
Subject: [Rd] default destfile in download.file()
Message-ID: <CABFfbXuJz9Y-E2unZ+U9-bSjYVYWJdKW1a68ogqMXe6P9Ciuig@mail.gmail.com>

A nice default value for the `destfile` argument in download.file() would
be `basename(url)` i.e. the name of the downloaded file. This would
correspond to default behavior in many other web/ftp clients and makes code
slightly more concise:

  download.file("https://svn.r-project.org/R/trunk/doc/CRAN_mirrors.csv")
  mirrors <- read.csv("CRAN_mirrors.csv")

	[[alternative HTML version deleted]]



[Rd] default destfile in download.file()
Jeroen Ooms