I am trying to create a download handler in shiny, but using future_promise() because it is possible that writing the file could take some time. Here is a working example of what I'd like to do, but without using the async framework:
A working .Rmd…
I have a question regarding R shiny and more especially about the way to improve performance of my shiny app. I'm using some SQL queries that take quite long to run as well as some plot which take time to show up. I know that it is possible to use…
Using future_promise with catch(.) (or then(onRejected=)), the error is still marked as "Unhandled" even though I think I'm attempting to handle it.
library(future)
library(promises)
plan(multicore, workers = 3)
Sys.getpid()
# [1]…
I'm trying to learn async programming using R so that I can implement an app that requires generation of random numbers with specified seeds (always with specified seeds). I've been using R.utils::withSeed for this, but I know that withr::with_seed…
I am using a future promise to call my data more efficiently. However, I'm finding that my filters (called through selecticizeGroupServer) do not work with the future promise.
See attached for a minimal reproducible example. The filters work as…
I'm timing a simple function that waits for 1 second and then prints a number. Wrapping it with a promise I was expecting that the promises would run after the timing was complete - which doesn't seem to be what is happening. My understanding is…
I have problem with understanding how parallel processes in Shiny works.
I created simple Shiny app with 2 processes:
first is waiting 10s (Sys.sleep(20))
second generate random heatmap
both are triggered by actionButtons.
The idea of the…
Soo i am developing this app, and i cant seem to figure how to fix this issue that i am having,
the problem is that the first function is always throwing undefined on the "console.log(params)", i assume the problem is because the "const result" is…
TL;DR
How do I reference/use a local package function from the shiny app that I am running, when it is not in my win-library?
ERROR:
Warning: Error in : there is no package called 'humblFinance'
PSEUDO-CODE:
output$p1 <- renderPlot({
…
Suppose I have a shiny app that has an operation that takes a few seconds and the site is busy. On a multi-core machine I would like to take advantage of these cores so that I minimize user waiting time. I was thinking the promises library could…
I am making an API with R package plumber. Some endpoints in this API would benefit from memoization, so I also use the memoise package. Combining both is pretty straight-forward, as demonstrated in this blog post. I'll build up on this post's…
I was looking at the promises package, but I can't figure out how to actually get promises do anything. All the available blocking mechanisms (like promise_all) return a promise, and there seems to be no obvious way to have the promise execute in…
export async function getAllUsers() {
// function to get the url of a firestore document const myUrl = async (docId) => { const myRef = ref(storage, `/profiles/${docId}.jpg\`);
return await getDownloadURL(myRef).then((url) =\>…
I am using the crrri package to webscrape some dynamic sites; however, when I run it across multiple pages in a for loop, there is a delay (I'm presuming because of the promises), which means that sometimes when accessing the html_temp file, it is…
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…