Wraps OMAPI's OmBeginDownloading(), which runs the download on a
background thread inside the library. axR doesn't parse .cwa
contents – see mrpheus or zeitR for that.
Usage
axivity_download(
device_id,
dest_file,
offset_blocks = 0L,
length_blocks = -1L,
blocking = TRUE
)Arguments
- device_id
Integer device ID, as returned by
axivity_discover().- dest_file
Character. Destination file path (existing files at this path are truncated).
- offset_blocks
Integer. Start offset of the download, in blocks. Default
0.- length_blocks
Integer. Length to download, in blocks. Default
-1(all).- blocking
Logical. If
TRUE(default), block until the download completes, fails, or is cancelled – equivalent to callingaxivity_download_wait()immediately after. IfFALSE, return as soon as the download starts; poll withaxivity_download_status().