fi_post_rdata: Post an R object to file.io

Description Usage Arguments Value Note References Examples

Description

This will take an R object (which can be a list of serializable objects) and create an RDS file from it and send it off to file.io.

Usage

1
2
3
fi_post_rdata(robj, filename = uuid::UUIDgenerate(), expires = "14d")

fi_data(robj, filename = uuid::UUIDgenerate(), expires = "14d")

Arguments

robj

an R object

filename

if not provided uuid::UUIDgenerate() will be used to create a file and that will be returned in the result data frame

expires

defaults to 14 days (14d). Must be a positive integer which, by default, represents the number of days until the file will be deleted. If you follow it with w, it will be the number of weeks; m for months; and, y for years.

Value

a data frame (tibble) with the success status, download key, download link and expiry

Note

There is a 5GB per file limit for the free version.

References

https://www.file.io/

Examples

1
2
3
4
5
6
7
fi_post_rdata(
  list(
    mtcars = mtcars,
    iris = iris,
    message = "Hi Noam!"
  )
)

hrbrmstr/fileio documentation built on May 5, 2019, 12:30 p.m.