You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the app directory is in the package, so once the package is installed the app can be served by shiny::runApp(system.file(package = "DIVE"). The app uses the data that comes with the package; some of this data needs to be able to be updated from the curator module, but package data is usually updated by updating the package and it's not good practice to overwrite the data.
So all data in a package needs to be copied to a repo where it data can be read/re-written. The data in package will serve as the last official version.
The text was updated successfully, but these errors were encountered:
Refinement to issue definition: It's not a good idea to include all the primary data as part of the package considering the following advice.
What I would try to do is to put a mechanism to acquire this data in the package, but separate the (changing ?) data from the code.
Packages are not first and foremost a means to direct data acquisition, in particular for changing data sets. Most packages include fixed data to demonstrate or illustrate a method or implementation.
Thus, there are real scalability issues.
The data will eventually scale up beyond the typical idea of data that can be included in an R package. Though there are data packages with large datasets, i.e. https://github.com/waldronlab/curatedTCGAData, these types of packages won't eventually double the number of high-throughput data.
So far including the batch-curated data has been OK to show how to implementation of certain modules would work, but in the future data updates will happen relatively frequently and also force package updates.
Currently, the app directory is in the package, so once the package is installed the app can be served by
shiny::runApp(system.file(package = "DIVE")
. The app uses the data that comes with the package; some of this data needs to be able to be updated from the curator module, but package data is usually updated by updating the package and it's not good practice to overwrite the data.Relevant threads:
https://stackoverflow.com/questions/4018519/update-the-dataset-in-an-installed-package
https://stackoverflow.com/questions/14711277/modifying-r-package-data
So all data in a package needs to be copied to a repo where it data can be read/re-written. The data in package will serve as the last official version.
The text was updated successfully, but these errors were encountered: