currently, we have handled serialization of the MOST common file types, as seen in the docs.
it would be valuable if we add support for these too:
pdf
xls
xlsx
ods
why
most R users often need to generate reports. in most cases, the reports are pdfs, a result of rendering via .Rmd or .qmd.
they also happen to use MS Excel and Libre Office a lot, so exporting of the results of an analysis to an xlsx or ods file is popular.
hint
we can make use of the mime map already in Yihui's {mime} pkg.
this will, foreseeably, end up simplifying how the response object handles "file downloads" internally.
in the end, we can have a standardized API for handling "downloads", possibly by extending res$send_file() to handle more file types.
new feature
currently, we have handled serialization of the MOST common file types, as seen in the docs.
it would be valuable if we add support for these too:
why
most R users often need to generate reports. in most cases, the reports are pdfs, a result of rendering via
.Rmd
or.qmd
.they also happen to use MS Excel and Libre Office a lot, so exporting of the results of an analysis to an
xlsx
orods
file is popular.hint
we can make use of the mime map already in Yihui's {mime} pkg. this will, foreseeably, end up simplifying how the response object handles "file downloads" internally.
in the end, we can have a standardized API for handling "downloads", possibly by extending
res$send_file()
to handle more file types.