Skip to content

Commit

Permalink
Not using ... ref #110 (#155)
Browse files Browse the repository at this point in the history
* Not using ... ref #110

* Update doc

* Correct docs

* Change the default CRAN_mirror

* Revert "Change the default CRAN_mirror"

This reverts commit 98e03b0.
  • Loading branch information
chainsawriot authored Sep 27, 2023
1 parent 411d539 commit 608ba52
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
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.

0 comments on commit 608ba52

Please sign in to comment.