Finding the path to the repository root

Hello,

I'm working on a package with a bunch of different Shiny modules. I'm trying to create @examples to test functions and satisfy CRAN policies. To do this I need session and input values from a Shiny server. I'm looking for examples where other folks have done this successfully. I can think of a couple ways to do this, but I'd rather not go back and forth with CRAN to sort this out, so I'm looking for any experience folks here might have with submitting Shiny modules and functions dependent on the Shiny variables.

Thanks
John