This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------------------ | |
# Helper function to create the file to POST to the source | |
# | |
# I'm letting either a dataframe or a path to a file be passed. I thought it may | |
# be possible for a situation where tempfile() fails to arise. Maybe on a server | |
# on an account with no write permissions? | |
# | |
# If a path is passed, return the uploaded file. | |
# | |
# If a dataframe/tibble is passed, create a tempfile for the upload and return |