dev/01_start.R

# Building a Prod-Ready, Robust Shiny Application.
# 
# Each step is optional. 
# 
# 1 - On init
# 
## 1.1 - Fill the descripion
## 
## Add information about the package that will contain your app

golem::fill_desc(
  pkg_name = "shinyutils", # The Name of the package containing the App 
  pkg_title = "Shiny Utils", # The Title of the package containing the App 
  pkg_description = "An R package with utility functions for building shiny apps.", # The Description of the package containing the App 
  author_first_name = "Seb", # Your First Name
  author_last_name = "Dalgarno",  # Your Last Name
  author_email = "seb@poissonconsulting.ca",      # Your Email
  repo_url = "https://github.com/poissonconsulting/shinyutils")      # The (optional) URL of the GitHub Repo

## 1.2 - Set common Files 
## 
## If you want to use the MIT licence, README, code of conduct, lifecycle badge, and news

usethis::use_mit_license(name = "Poisson Consulting Ltd.")  # You can set another licence here
usethis::use_readme_rmd()
usethis::use_code_of_conduct()
usethis::use_lifecycle_badge("Experimental")
usethis::use_news_md()

## 1.3 - Add a data-raw folder
## 
## If you have data in your package
usethis::use_data_raw()

## 1.4 - Init Tests
## 
## Create a template for tests

golem::use_recommended_tests()

## 1.5 : Use Recommended Package

golem::use_recommended_dep()

## 1. Add various tools

golem::use_utils_ui()
golem::use_utils_server()

# If you want to change the default favicon
golem::use_favicon( path = "path/to/favicon")


## 1.6 : Create your first module
## 
## Add a module file in your R folder with the recommended structure

golem::add_module(name = "about") #

## 1.7: Add a browser button

golem::add_browser_button()
poissonconsulting/shinyutils documentation built on Nov. 14, 2021, 8:18 p.m.