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
2
  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/ncbi documentation built on May 17, 2019, 8:53 a.m.