dev/01_start.R

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

golem::fill_desc(
  pkg_name = "tinselR", # The Name of the package containing the App
  pkg_title = "An R Shiny Application for annotating outbreak phylogenetic
  trees",
  pkg_description = "This is a phylogenetic tree application for adding
  additional information to trees. Additional information could come from a
  genetic distance file or meta data file.",
  author_first_name = "Jenna", # Your First Name
  author_last_name = "Hamlin",  # Your Last Name
  author_email = "ptx4@cdc.gov",      # Your Email
  repo_url = "https://github.com/jennahamlin/tinselR", # URL of the GitHub Repo
)

## Use this desc to set {golem} options

golem::set_golem_options()

## 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 = "Jenna Hamlin")
usethis::use_readme_rmd(open = FALSE)
usethis::use_code_of_conduct()
usethis::use_lifecycle_badge("Experimental")
usethis::use_news_md(open = FALSE)
usethis::use_git()

## 1.3 - Add a data-raw folder
## If you have data in your package
usethis::use_data_raw(name = "my_dataset", open = FALSE) # Change "my_dataset"

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

golem::use_recommended_tests()

## 1.5 : Use Recommended Package

golem::use_recommended_deps()

#essentially step 1.5 runs the code use_package("packagename"),
#which adds the dependencies needed for importing

## 1.6 Add various tools

# If you want to change the favicon (default is golem's one)
# can make my own https://favicon.io/favicon-generator/
golem::remove_favicon()
golem::use_favicon("~/Desktop/tinselR/favicon/favicon.ico")

# Add helper functions
golem::use_utils_ui()
golem::use_utils_server()

# You're now set!
# go to dev/02_dev.R
rstudioapi::navigateToFile("dev/02_dev.R")
jennahamlin/Tinsel documentation built on Sept. 15, 2021, 9:46 a.m.