Good day all,
I have spent quite some time looking into ways to perform unit test on my UI, specifically on my valuebox, progressbar, barcharts, etc. Firstly I am not exactly sure if "unit test" is the right term in this context so please kindly correct me if I am wrong. What I intend to do is to ensure that for example that the valuebox appears as intended (if I want 10 to appear on it, it should appear as 10 and not other number), the progressbar will progress accordingly to a reactive data.
I have looked into an R package called shinytest and they seem to have a snapshot approach which may not be feasible if we intend to extract data from a reactive database. I then tried out an article from R with regards to unit testing and was wondering if that is the right path for me.
Can I kindly get advice from experts that incorporate testing into their dashboard?
Thanks in advance!
Related
In my app, I am bringing in data and getting it to kick out to datatables for display. However, I then need that data to be available for use with tidygraph which doesn't seem to play well with reactive data. As such, I'd like to make the "reactive" static. Is there a way?
For the record, I 100% am not looking to render this as a data table for display. I already have all that functionality. Whenever I search for a response to this issue, everyone's advice seems to end with renderDT but not put the OP's data back into a workable dataframe.
In short, how do I see reactive data in a frame?
I've tried about every reactive command option there is. Nothing seems to be working.
I figured it out! I simply had to place the problematic action into the reactive, which seems logical but I didn't think it would allow me to do what I wanted. Nevertheless, I have achieved the full functionality that I wanted for this stage.
Thanks for the guidance to those who responded.
how are you. For a while I've been working for a Gynecologist building her a data base. For the project I am using Firebase and JavaScript. The database is for her to keep track of their patients and she keeps reports on each one of them. I am almost done with the job, the UI is almost finished, the core functionalities of the database (save data, delete, retreive, and update) are up and running but I am stuck in one little thing. She asked me for a way to turn those reports she keeps in the database into a format like PDF so she can print them and give them in case needed to her patients. The thing is that Ive tried with html2pdf, a git repository that works kind of clunky, and tried looking for others but I still cant find one that works correctly. So I wanted to ask you guys if you know of some alternatives. I started thinking about using EXCEl or Word document. But either way it seems quite complicated. Thank you for your time.
Best to all.
I have a rather simple question that I can't seem to find an answer for.
I essentially want to know if there is code that provide a status for the code we are running. As an example, I am running code that usually takes time and would like to know if the job is 25%-50%-75% complete. This is the kind of features we get with Software from large companies ($$).
Does anyone use anything when working with R?
I use Rstudio if this is pertinent.
Thanks
I am new to shiny and I was wondering whether it is possible to create a kind of online survey with Shiny. Moreover, I would like to evaluate each question and ask the next questions based on this result. At last, I would like to save all the results.
Is this possible?
Do you know any similar projects that would be a good start
Thank you!
After using Quantstrat to successfully backtest a strategy, is there any way to use the same signal/indicator/rule code to generate orders for production trading?
It seems like this might be possible by using the order book, but I haven't been able to find any examples or demos that explain how to generate orders for the future using data up to the present time.
Any pointers or advice on how to accomplish this would be appreciated.
It's theoretically possible, but why would you want to? quantstrat is designed to make it easier to test ideas quickly and accurately. That's a very different problem domain than production trading. In short, use the right tool for the job.
If you really want to go this route, you would need to:
update your mktdata object for each new piece of relevant market data you receive,
run applyIndicators, applySignals, and applyRules on the necessary subset,
write a new ruleOrderProc (and maybe ruleSignal) to send orders to your broker.