From 427f860d9f208a2a057ffd201c3509fe21c95654 Mon Sep 17 00:00:00 2001 From: John Benninghoff Date: Tue, 7 May 2024 20:25:46 -0500 Subject: [PATCH] Allow usethis to create proper LICENSE later --- R/setup.R | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/R/setup.R b/R/setup.R index 57fbd687..2f52d95b 100644 --- a/R/setup.R +++ b/R/setup.R @@ -223,8 +223,6 @@ create_github_repo <- function(repo_name, repo_desc = "", private = FALSE, org = stop("create_from_github() target, '", ut_destdir, "' already exists") } - license_template <- get_license() - if (license_template == "proprietary") license_template <- NULL if (is.null(org)) { create <- gh::gh( "POST /user/repos", @@ -232,7 +230,7 @@ create_github_repo <- function(repo_name, repo_desc = "", private = FALSE, org = description = repo_desc, private = private, gitignore_template = "R", - license_template = license_template, + license_template = NULL, .api_url = host ) } else { @@ -243,7 +241,7 @@ create_github_repo <- function(repo_name, repo_desc = "", private = FALSE, org = description = repo_desc, private = private, gitignore_template = "R", - license_template = license_template, + license_template = NULL, .api_url = host ) }