Skip to content

Commit

Permalink
import keywords as data #106
Browse files Browse the repository at this point in the history
  • Loading branch information
huizezhang-sherry committed Oct 5, 2023
1 parent 29366c6 commit 12c7908
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
^CODE_OF_CONDUCT.md$
^cran-comments\.md$
^CRAN-SUBMISSION$
^data-raw$
3 changes: 3 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ VignetteBuilder: knitr
URL: https://github.com/rjournal/rjtools
BugReports: https://github.com/rjournal/rjtools/issues
Config/testthat/edition: 3
Depends:
R (>= 2.10)
LazyData: true
7 changes: 7 additions & 0 deletions R/keywords.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#' Keywords options for R Journal
#'
#' Available keywords options for R Journal articles
#'
#' @format
#' A vector of length 41
"keywords"
1 change: 1 addition & 0 deletions R/prep-submission.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ prep_submission <- function(){
cli::cli_alert_info("Article title: {.field {title}}")
invisible(res)
}

46 changes: 46 additions & 0 deletions data-raw/keywords.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## code to prepare `keywords` dataset goes here
keywords <- c(
"Bayesian Inference",
"Chemometrics and Computational Physics",
"Clinical Trial Design Monitoring and Analysis",
"Cluster Analysis & Finite Mixture Models",
"Databases with R",
"Differential Equations",
"Distributions",
"Econometrics",
"Ecological and Environmental analysis",
"Design and Analysis of Experiments (DoE)",
"Extreme Value Analysis",
"Empirical Finance",
"Functional Data Analysis",
"Statistical Genetics",
"Graphical Models",
"Graphics and Visualisation",
"High-Performance Computing",
"Hydrological Data and Modeling",
"Machine Learning & Statistical Learning",
"Medical Image Analysis",
"Meta-Analysis",
"Missing Data",
"Model Deployment",
"Multivariate Statistics",
"Natural Language Processing",
"Numerical Mathematics",
"Official Statistics & Survey Methodology",
"Optimization and Mathematical Programming",
"Pharmacokinetic Analysis",
"Phylogenetics",
"Psychometric Models and Methods",
"Reproducible Research",
"Robust Statistical Methods",
"Social Sciences",
"Spatial Analysis",
"Spatio-Temporal Analysis",
"Survival Analysis",
"Teaching Statistics",
"Time Series Analysis",
"Tracking Data",
"Web Technologies and Services"
)

usethis::use_data(keywords, overwrite = TRUE)
Binary file added data/keywords.rda
Binary file not shown.
16 changes: 16 additions & 0 deletions man/keywords.Rd

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

0 comments on commit 12c7908

Please sign in to comment.