Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not using ... ref #110 #155

Merged
merged 5 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R/use_rang.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ use_rang <- function(path = ".", add_makefile = TRUE, add_here = TRUE,
#' This `usethis`-style function creates an executable research compendium according to the Turing Way.
#' @param path character, path to the project root
#' @param add_rang logical, whether to run [use_rang()] to `path`
#' @param ... additional parameters pass to [use_rang()]
#' @inheritParams use_rang
#' @return path, invisibly
#' @seealso [use_rang()]
#' @details
Expand All @@ -80,7 +80,7 @@ use_rang <- function(path = ".", add_makefile = TRUE, add_here = TRUE,
#' [The Turing Way: Research Compendia](https://the-turing-way.netlify.app/reproducible-research/compendia.html)
#' Gorman, KB, Williams TD. and Fraser WR (2014). Ecological Sexual Dimorphism and Environmental Variability within a Community of Antarctic Penguins (Genus Pygoscelis). PLoS ONE 9(3):e90081. \doi{10.1371/journal.pone.0090081}
#' @export
create_turing <- function(path, add_rang = TRUE, ...) {
create_turing <- function(path, add_rang = TRUE, add_makefile = TRUE, add_here = TRUE, verbose = TRUE, force = FALSE) {
if (isTRUE(dir.exists(path))) {
stop("`path` exists.")
}
Expand All @@ -91,7 +91,7 @@ create_turing <- function(path, add_rang = TRUE, ...) {
dir.create(file.path(path, "figures"))
dir.create(file.path(path, "data_clean"))
if (isTRUE(add_rang)) {
use_rang(path, ...)
use_rang(path, add_makefile = add_makefile, add_here = add_here, verbose = verbose, force = force)
}
invisible(path)
}
18 changes: 16 additions & 2 deletions man/create_turing.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading