Skip to content

Add golem project hook to produce nice CDU golem template #23

Description

@ChrisBeeley

When you create a golem package you can run a project hook that can do some common set up tasks as described here https://cran.r-project.org/web/packages/golem/vignettes/f_extending_golem.html

We should have one of these for CDU golem projects, that will do the following (happy to add/ change/ debate this list):

  • Add the pipe to the dependencies using usethis::use_pipe()
  • Add a stop() the to top of the 02.dev.R file because I source the whole thing accidentally sometimes 🙃
  • Add shinydashboard as a dependency
  • Add the CDU favicon using this function golem::use_favicon("https://cdu-data-science-team.github.io/img/nottshc-cdu-data-science-logo.png")
  • Host the image file above within this repo in case it moves
  • Add ext = 'png' to favicon() within the golem_add_external_resources() function in 'app_ui.R'
  • Add a shinydashboard skeleton to app_ui.R instead of vanilla Shiny UI

Being honest I don't know if all the above is even possible but I do all of the above every time I start a golem project so even half of the above would be great

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions