upload_file | R Documentation |
This function sends the file retrieved by the 'content' parameter to the specified target location (relative file path in the user workspace) on the back-end.
upload_file( content, target, encode = "raw", mime = "application/octet-stream", con = NULL )
content |
the file path of the file to be uploaded |
target |
the relative server path location for the file, e.g. where to find the file in the users workspace |
encode |
the encoding type used to upload the data, e.g. 'multipart','form','json','raw' ('raw' by default) |
mime |
mime type used in upload_file ('application/octet-stream' as a default) |
con |
authorized Connection (optional) otherwise |
the relative file path on the server
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.