I have an API I've developed that generates a .tiff file and returns it. When calling it in programs such as Postman or via a web browser I get a file returned.
I'm trying to load the image into a raster type in R but cannot figure out how to do this. I've tried using httr and the GET() function but the image is just returned as a raw vector and I cannot turn this into a raster.
Is there a way to do this without having to actually download the file temporarily and then make a raster object from that?
I'd rather not have to clean up temporary files constantly.