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 = "gravitype", # The Name of the package containing the App 
  pkg_title = "Gravity Pole emploi", # The Title of the package containing the App 
  pkg_description = "Analyse des tensions sur le marché du travail.", # The Description of the package containing the App 
  author_first_name = "Thomas", # Your First Name
  author_last_name = "Vroylandt",  # Your Last Name
  author_email = "thomas.vroylandt@pole-emploi.fr",      # Your Email
  repo_url = NULL # The (optional) 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 = "Thomas Vroylandt" )  # You can set another licence here
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 = "liste_fap87", open = FALSE )
usethis::use_data_raw( name = "data_tensions_nat_fap", open = FALSE)
usethis::use_data_raw( name = "data_tensions_dep_fap", open = FALSE)

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

golem::use_recommended_tests()

## 1.5 : Use Recommended Package

golem::use_recommended_deps()

## 1.6 Add various tools

# If you want to change the favicon (default is golem's one)
golem::remove_favicon()
# golem::use_favicon() # path = "path/to/ico". Can be an online file. 

# 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" )
tvroylandt/gravitype documentation built on Feb. 7, 2020, 2:37 a.m.