It depends on what you need to do.
ThinkR has a package called golem. Its a framework for building Shiny applications, and incapsulates your shiny app into an R Package. So, once your shiny app is developed, you can distribute the package, and run it from any R console.
You'd need to be careful about your dependencies without any internet connection. If your package or app requires an R package, it will need to retrieve them somehow. A tool like renv can help you install packages from a local source.