-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Current shiny stuff has been moved to /inst/shiny. Some changes are needed for users to be able to access the shiny features.
We would need:
- to check that the files in /inst/shiny are not redundant
- to make this a function where the dataset can change; code currently uses a fixed dataset
- calls to 'library' have to be removed from within the .R files and stated as dependencies (fields @import in roxygen and adding the relevant packages to DESCRIPTION file)
One way to do this is:
- have the files server.R and ui.R in the inst/shiny folder
- have a function starting the server which refers to these files using system.files()
There is an example of that with the function adegenetServer() in adegenet:
- link to package sources: https://sourceforge.net/p/adegenet/code/ci/master/tree/pkg/
- files in inst/ folder: https://sourceforge.net/p/adegenet/code/ci/master/tree/pkg/inst/dapcServer/
- file /R/server.R: https://sourceforge.net/p/adegenet/code/ci/master/tree/pkg/R/servers.R