Best practices for using modules across multiple shiny apps? #442
Replies: 7 comments
-
I would love to get an answer to this question as well! Based on this section of the documentation, it seems theoretically possible to have multiple apps that share modules in a single rhino repository but I haven't been able to figure out the correct configuration settings to do so (perhaps by altering the legacy_entrypoint settings?). Ideally, I'd love to swap out |
Beta Was this translation helpful? Give feedback.
-
If you have a look at the So, this is one way of having multiple rhino apps that share modules:
Now, when you set the box path to the root of the directory in each of the |
Beta Was this translation helpful? Give feedback.
-
This is not as ideal as you wanted, like having |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
As Jakub mentioned it looks like the deployment with files from other/parent directory will be a challenge and the recommendation is once again to extract them into R package. |
Beta Was this translation helpful? Give feedback.
-
I think creating symlinks can be one way to overcome this, haven't tested it though. |
Beta Was this translation helpful? Give feedback.
-
Got it! Thank you both for your help on this. I've definitely made some initial efforts at moving shared logic into a separate package but ran into some roadblocks and hoped that maybe it would be possible to just leverage shared modules in a rhino framework... would love to see this implemented one day! |
Beta Was this translation helpful? Give feedback.
-
I'm part of a team that is trying to deploy several new shiny apps to our company's enterprise Posit connect server. The look and feel of each app is very similar, but the underlying data differs by geography. For example, one app focuses on the state of Oregon, while another focuses on California, but the same style of maps and plots need to be recycled across each app.
We are using the rhino framework for each of these apps, but we are trying to determine the best way to share the same shiny modules across multiple different apps. The third option within this Posit Community comment mentions the use of a standalone package of shiny modules that we can use to perform version control and share common functionality across different apps. We are interested in this approach but don't know how to implement it within the rhino framework.
Any feedback on this is greatly appreciated. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions