possible to source a file based on a textOutput from shiny


I gave up the idea of using shiny.router with many different dashboards as using shiny.router was impacted the layout (font, color, etc.) from my shiny dashboards.

I am back struggling to find a way to handle this large project with many components.
To structure my code, I would like to source files based on a textOutput.


output of textOutput("tabBox_product") --> maxime/test.R

How can I use source() based on this textOutput??

When I try source(textOutput("tabBox_product")), I get an error message saying:
"readLines(file, warn = FALSE) : 'con' n'est pas une connexion"

I am sure there is a way to do it but I just can't find it :slight_smile:

Thank you,


Looks like you are providing R code to the first argument of source(), but it needs to be a filename.