Skip to content

Conversation

@humberto-garciacaballero
Copy link
Contributor

This PR introduces changes to adopt Golem as a framework to develop Shiny apps. The main changes are reflected in the split of ui and server logic into separate files, and the usage of certain development scripts that can simplify the development process. These can be found under dev folder.

The PR also takes advantage and addresses certain problems with NAMESPACE and dependencies. Since our guideline says that we should use functions from external packages as package::fun(), we don't need to include @importFrom statements for every function that is being used in our code. The only exception to this is the usage of pipes and the .data symbol from the rlang package. These indeed have to be imported. To do so, we have followed the recommendation of having a {packagename}-package.R script that includes all the necessary @importFrom statements in a centralized place.

The version of R has been set in the DESCRIPTION file so warnings do not appear when running devtools::check. As we are using data-raw, we need to set a minimum version for R.

The README is now generated using README.Rmd. The zzz.R files has been removed as it was not needed anymore.

refactor: remove all the roxygen import statements as we follow the package::function nomenclature and therefore is not needed
feature: start using README.Rmd instead of README.md. Use the toc functionality instead of <div> elements
refactor: update Dockerfile to work with the new golem structure (run_app)
refactor: extract JS code into its separate file
refactor: remove zzz.R as it was not needed anymore
refactor: add devtools::build_readme reference in the 02_dev.R file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants