I have an .R script that imports some data from an API, does some simple data cleaning, and then calls knitr::render to create a pdf. I can then email this pdf this output using a package like gmailr.
I'm wondering if anyone has advice on how I can "host" my .R script online somehow and call it with JavaScript or some other method. I'm not exactly sure, but I'd still like the endpoint to be an emailed pdf.