upload_file | R Documentation |
POST()
or PUT()
.Upload a file with POST()
or PUT()
.
upload_file(path, type = NULL)
path |
path to file |
type |
mime type of path. If not supplied, will be guess by
|
citation <- upload_file(system.file("CITATION"))
## Not run:
POST("http://httpbin.org/post", body = citation)
POST("http://httpbin.org/post", body = list(y = citation))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.