Skip to contents

Returns the full path to a file located in the user's Downloads directory.

Usage

findDownload(file)

Arguments

file

character string. Name of the file.

Value

a character string giving the full path to the file.

Details

The function resolves the path to the user's Downloads directory using an internal helper and appends file. It does not perform any downloading; it only locates files that already exist locally.

If the file does not exist, an error is thrown.

Examples

if (FALSE) { # \dontrun{
# Locate a file in Downloads
findDownload("data.csv")
} # }