Is it possible to automate a report with such requirements?

Dear Community,
I am planning a projekt to switch from semi-automated to fully automated report generation in the Austrian healthcare system. Before I dive into implementation, I would like to get your opinion on whether R Markdown is suitable for this task.

The following requirements should be met:

Visualisation: Presentation of percentages as bar charts.

Dynamic text: Creation of text modules into which the respective percentages are automatically transferred.

Conditional text selection: Selection of the appropriate text module based on the largest percentage (according to predefined rules), while others are hidden.

Calculation of indices: Creation and visualisation of indices.

Statistical tests: Comparison of indices with benchmarks using t-tests

Result-dependent text selection: Automatic selection of the correct text module depending on the significance of the result

Do you think this implementation is feasible with R Markdown? Is there perhaps even better software?

Thank you very much for your assessments and tips!

Best regards,
Yamike