files_from_repo: return a dplyr::tbl of files from the file repository for a...

files_from_repoR Documentation

return a dplyr::tbl of files from the file repository for a receiver (and maybe specific day)

Description

return a dplyr::tbl of files from the file repository for a receiver (and maybe specific day)

Usage

files_from_repo(serno, day = NULL)

Arguments

serno

character scalar receiver serial number

day

character scalar day; default NULL

Value

a tbl; one of two flavours, depending on the receiver type and 'day'.

If the receiver is a sensorgnome and day is NULL, the return value has these columns sorted by decreasing day:

  • day: character; day, formatted as "YYYY-MM-DD"; any days for which the repo has files

  • count: integer; number of files from the day in the file repo

Otherwise, for Lotek receivers or if 'day' is given, the return value has these columns, sorted by fileID:

  • name: character; name of file

  • fileSize: integer; size of file on disk, in bytes

For Lotek receivers, day is ignored (as long as it is present), and all files for the receiver are listed.

Note

for SG receivers, when both a compressed and un uncompressed version of the file are present, this only counts as one file, and if returning files, the name is returned without a ".gz" suffix, but the size is of the .gz file on disk


MotusWTS/motusServer documentation built on April 12, 2025, 2:34 p.m.