-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
print_pkg_recipe()
function is added
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
print_pkg_recipe <- function() { | ||
lines <- c( | ||
"usethis::create_package(path)", | ||
"usethis::use_description()", | ||
sprintf("Title: %s", chatgtp::ask_chatgpt()), | ||
"Description: This package is made by ", | ||
"person(given = \"Seokhoon\", family = \"Joo\", email = \"[email protected]\",\n role = c(\"aut\", \"cre\"))", | ||
"Depends: R (>= 3.5.0)", | ||
"Remotes:\n github::seokhoonj/ggshort\n github::seokhoonj/jaid", | ||
"Imports:\n data.table (>= 1.14.2),\n ggplot2 (>= 3.3.3),\n ggshort,\n jaid", | ||
"usethis::use_namespace()", | ||
"usethis::use_mit_license() # usethis::use_gpl3_license()", | ||
"usethis::use_package_doc()", | ||
"#' @description\n#' blah blah blah\n#' @keywords internal,\n#' @useDynLib jaid, .registration = TRUE\n#' @import ggplot2\n#' @importFrom Rcpp sourceCpp", | ||
"usethis::use_readme_md()", | ||
"usethis::use_cran_badge()", | ||
"usethis::use_cran_comments()", | ||
"# Change the environment to a terminal", | ||
"# git add .", | ||
"# git commit -m ", | ||
"usethis::use_github_action_check_release()" | ||
) | ||
cat("path = ''", paste0("\n", lines)) | ||
} |