Check that file paths exist and data is encoded if specified
Source:R/attachments.R
check_and_encode_files.Rd
Check that file paths exist and data is encoded if specified
Arguments
- dat
tbl_df
orlist
of information regarding attachments stored locally that will be encoded for use in the APIs.- column
character
; a string that indicates which column in thedat
argument is storing the body of information that needs to be encoded.- encode
logical
; a indicator of whether the body column should be encoded in this step, which allows us to utilize this function for checking or checking and encoding.- n_check
integer
; an integer specifying how many elements in thedat
argument that should be checked to see if the referenced file path exists locally. This fails the function early if users accidentally specify the wrong path.
See also
Other Attachment functions:
sf_create_attachment()
,
sf_delete_attachment()
,
sf_download_attachment()
,
sf_update_attachment()