View source: R/safety_checks.R
| check_file_size | R Documentation |
Compares the expected data size against the file size on disk. Stops with an error if the file is too small (truncated or corrupt).
check_file_size(filepath, header_bytes, data_bytes)
filepath |
character string, path to the file. |
header_bytes |
single numeric value, the number of bytes consumed by the file header (everything before the data payload). |
data_bytes |
single numeric value, the expected number of bytes in the data payload. |
logical, TRUE (invisibly) if the file is large enough.
Stops with an error otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.