# the goal of this file is to keep track of all devtools/usethis
# call you make for yout project
# Feel free to cherry pick what you need and add elements
# install.packages("desc")
# install.packages("devtools")
# install.packages("usethis")
# Hide this file from build
usethis::use_build_ignore("devstuff_history.R")
# DESCRIPTION
library(desc)
# Create and clean desc
my_desc <- description$new("DESCRIPTION")
# Set your package name
my_desc$set("Package", "prenomsapp")
#Set your name
my_desc$set("Authors@R", "person('Vincent', 'Guyader', email = 'vincent@thinkr.fr', role = c('cre', 'aut'))")
# Remove some author fields
my_desc$del("Maintainer")
# Set the version
my_desc$set_version("0.0.0.9000")
# The title of your package
my_desc$set(Title = "RStudio Project Templates for Prod-ready Shinyapps")
# The description of your package
my_desc$set(Description = "Create a prod-ready shiny app with this RStudio project template.")
# The urls
my_desc$set("URL", "https://github.com/ThinkR-open/prenomsapp")
my_desc$set("BugReports", "https://github.com/ThinkR-open/prenomsapp/issues")
# Save everyting
my_desc$write(file = "DESCRIPTION")
# If you want to use the MIT licence, code of conduct, lifecycle badge, and README
usethis::use_mit_license(name = "ThinkR")
usethis::use_readme_rmd()
usethis::use_code_of_conduct()
usethis::use_lifecycle_badge("Experimental")
usethis::use_news_md()
usethis::use_pipe()
# For data
prenoms_uniques <- unique(prenoms::prenoms_france$name)
usethis::use_data(prenoms_uniques)
# For tests
usethis::use_testthat()
usethis::use_test("app")
# Dependencies
usethis::use_package("shiny")
usethis::use_package("DT")
usethis::use_package("dplyr")
usethis::use_package("tidyr")
usethis::use_package("dygraphs")
usethis::use_package("plotly")
usethis::use_package("ggplot2")
usethis::use_package("shinyalert")
# Reorder your DESC
usethis::use_tidy_description()
# Vignette
usethis::use_vignette("prenomsapp")
devtools::build_vignettes()
# Codecov
usethis::use_travis()
usethis::use_appveyor()
usethis::use_coverage()
# Test with rhub
rhub::check_for_cran()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.