file_compare: Compare local and remote file timestamp and/or size

Description Usage Arguments Value

Description

Compare local and remote file timestamp and/or size

Usage

1
file_compare(file, url, time = TRUE, size = FALSE, .message = TRUE)

Arguments

file

Path to local file.

url

URL of remote source.

time

Compare the timestamps (default: TRUE).

size

Compare the file sizes (default: FALSE).

.message

Print a message

Value

TRUE if the local file does not exist, if the remote source is more recent than the local file, or if the size of the remote source differs from the local file. Otherwise return FALSE.


gschofl/gsmisc documentation built on May 17, 2019, 8:52 a.m.