diff --git a/.Rbuildignore b/.Rbuildignore new file mode 100644 index 0000000000000000000000000000000000000000..91114bf2f2bba5e0c5252e75018da19b869776f1 --- /dev/null +++ b/.Rbuildignore @@ -0,0 +1,2 @@ +^.*\.Rproj$ +^\.Rproj\.user$ diff --git a/DESCRIPTION b/DESCRIPTION new file mode 100644 index 0000000000000000000000000000000000000000..cdcc7ae1ebcaddb1cb2b8ae974636d8b3a32ad31 --- /dev/null +++ b/DESCRIPTION @@ -0,0 +1,17 @@ +Package: woRkflow +Type: Package +Title: A template for how we do collaborative reproducible analysis with R #ymmv +Version: 0.1.0 +Authors@R: + c(person(given = "Ben", + family = "Anderson", + role = c("aut", "cre"), + email = "ben.anderson@otago.ac.nz") + ) +Description: A repo that collects various guidance and resources for people trying to set up and run collaborative reproducible analysis with R. Also a repo that can act as a template for you if you like how we work. You may not... +License: MIT License +Imports: + here +Encoding: UTF-8 +LazyData: true +RoxygenNote: 7.1.0 \ No newline at end of file diff --git a/NAMESPACE b/NAMESPACE new file mode 100644 index 0000000000000000000000000000000000000000..c94578d00a24a24b6dd2ddc1d102727de07473d6 --- /dev/null +++ b/NAMESPACE @@ -0,0 +1,3 @@ +# Generated by roxygen2: do not edit by hand + +export(setup) diff --git a/R/setup.R b/R/setup.R new file mode 100644 index 0000000000000000000000000000000000000000..64b64b852bea69d3aa4403e3fe6ff69cb6e795a5 --- /dev/null +++ b/R/setup.R @@ -0,0 +1,10 @@ +#' Set up the project +#' +#' \code{setup} sources env.R in the repo/project top level folder. +#' +#' @author Ben Anderson, \email{b.anderson@@soton.ac.uk} +#' @export +#' +setup <- function() { + source(here::here("env.R")) +} \ No newline at end of file diff --git a/man/setup.Rd b/man/setup.Rd new file mode 100644 index 0000000000000000000000000000000000000000..7107e05a02a0ecc7b89badccd73b288d4d8783f4 --- /dev/null +++ b/man/setup.Rd @@ -0,0 +1,14 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/setup.R +\name{setup} +\alias{setup} +\title{Set up the project} +\usage{ +setup() +} +\description{ +\code{setup} sources env.R in the repo/project top level folder. +} +\author{ +Ben Anderson, \email{b.anderson@soton.ac.uk} +}