A character vector for the names of one or multiple packages
destdir
The directory where documents are saved (e.g., C:/myFile; the default directory is the current working directory.
mode
The argument for download.file; the default is 'wb' for PDF version.
pdf.url
The url for PDF documents online.
f.zip
A logical value indicating whether a zip version is downloaded; by default, a zip version is downloaded by download.packages
f.pdf
A logical value indicating whether a PDF mannual for a package should be downloaded from the internet.
Value
Return the packge names.
Details
This function is mainly used to download the source version of one or multiple packages. A zip version and a PDF manual can also be downloaded at the same time.