The function searches for a file in the downloads folder and returns the file, provided it is in a readable Excel- or data format.

Downloads(fname, ...)

Arguments

fname

the filename, if no extension specified the first file found will be used.

...

are passed on to the open functions readxl() or read_table().

Value

the file

Author

Andri Signorell andri@signorell.net

Examples

if (FALSE) { # \dontrun{
Downloads("yourfilename")
Downloads("yourfilename.xls")
Downloads("yourfilename.txt", sep=",", header=TRUE)
} # }