Asynchronous API calls via image_read

January 22, 2020 @mko Maggie

@mko wrote:

I have a question similar to this: Asynchronous API calls with curl

Is there a way to do the similar process but with image_read. I have an Rmarkdown file that is pulling 16 images from an API and I'd like to be able to do them asynchronously rather than one by one.

image<- image_read(paste0("https://rconnect/etcetc/startDate=",startDate,
                              "&endDate=",endDate
                           ))



I'm essentially making an rmarkdown file that will be published as its own API, it calls various other APIs to create images. These images are plotted once called, so it's not an immediate image pull. Due to this, I'd like to be able to call all of them at the same time to decrease hang time of the rmarkdown file.

Posts: 2

Participants: 2

Read full topic

Previous Article
"roll back" to likely environment by date
"roll back" to likely environment by date

@schuffr wrote: Hi all, I have inherited some shiny code that was known (by me) ...

Next Article
rstudio launcher is not working. Throwing error: [rserver] ERROR Cannot connect to the Job Launcher service
rstudio launcher is not working. Throwing error: [rserver] ERROR Cannot connect to the Job Launcher service

@diegop wrote: Hi I'm trying to setup launcher service in my rstudio server inst...