#' Set up basic file structure for new repo
#'
#' Creates \code{data/} and \code{output/} folders, plus \code{README.md},
#' \code{RUNME.R}, and metadata and data build scripts.
#'
#' @export
#' @examples
#' set_up_new_repo()
#**********************************************************
set_up_new_repo = function() {
file.create("RUNME.R")
# README may exist from initializing on Github
if (! file.exists("README.md")) file.create("README.md")
file.create("01-define-metadata.R")
file.create("02-build-datasets.R")
dir.create("data")
dir.create("output")
sink("output/.gitignore")
cat("# Ignore everything in this directory\n")
cat("*\n")
cat("# Except this file\n")
cat("!.gitignore")
sink()
}
#**********************************************************
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.