I am trying to use the future_async() function as described here. But I get an error
Warning: Error in future_async: could not find function "future_async"
51: eval [loadData.R#211]
50: eval
48: source
47: server [C:\Users\david\Documents\PiccoloLab\GoodNomenFeatures1/app.R#10]
1: runApp
Error in future_async(callSubmissionsApi()) :
could not find function "future_async"
I am trying to start another R process in the background of my app to call an API. Unfortunately, I can't even figure out if I'm including the correct library.
Here are relevant code snippets:
Loading the libraries I think I need:
library(promises)
library(future)
plan(multisession)
The part where I'm using the function (it's in one of my server files):
future_async(callSubmissionsApi()) -> promise
If you need a better idea of what's going on in the app, it's open source, so here is the link to the repo where I'm working on these changes. I'm making the function call on line 211 of loadData.R