Skip to content
Snippets Groups Projects
Commit f7366e4c authored by David Dorchies's avatar David Dorchies :zany_face:
Browse files

feat(create_fairify): add fairify gitlab repo in Remotes

Fix #12
parent c3ca04ca
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,13 @@ create_fairify <-
reports = TRUE,
cloud = TRUE,
git = TRUE,
fields = list(Remotes = "git::https://forgemia.inra.fr/umr-g-eau/fairify.git"),
...) {
usethis::create_package(path, rstudio = TRUE, open = FALSE, check_name = check_name, ...)
usethis::create_package(path,
fields = fields,
open = FALSE,
check_name = check_name,
...)
usethis::proj_set(path)
if (cloud) update_fairify(path)
if (tidy) {
......
......@@ -12,6 +12,7 @@ create_fairify(
reports = TRUE,
cloud = TRUE,
git = TRUE,
fields = list(Remotes = "git::https://forgemia.inra.fr/umr-g-eau/fairify.git"),
...
)
}
......@@ -37,6 +38,10 @@ error if not.}
\item{git}{if \code{TRUE}, initialises a Git repository}
\item{fields}{A named list of fields to add to \code{DESCRIPTION}, potentially
overriding default values. See \code{\link[usethis:use_description]{use_description()}} for how you can set
personalized defaults using package options.}
\item{...}{Further parameters passed to \link[usethis:create_package]{usethis::create_package}}
}
\value{
......
test_that("create_fairify works", {
path <- helper_create_fairify()
path <- helper_create_fairify(rstudio = TRUE)
project <- basename(path)
expect_true(file.exists(file.path(path, paste0(project, ".Rproj"))))
expect_true(dir.exists(file.path(path, ".git")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment