Skip to content

Commit

Permalink
add release bullets (#675)
Browse files Browse the repository at this point in the history
* add release bullets

* combine release bullets

* use pkg-level docs

* updated docs

Co-authored-by: Hannah Frick <hannah@rstudio.com>
  • Loading branch information
topepo and hfrick authored Mar 16, 2022
1 parent 4976b64 commit edf88ab
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 41 deletions.
20 changes: 0 additions & 20 deletions R/0_imports.R

This file was deleted.

21 changes: 0 additions & 21 deletions R/aaa.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,24 +80,3 @@ function(results, object) {
}
res
}

# ------------------------------------------------------------------------------
# nocov start

utils::globalVariables(
c('.', '.label', '.pred', '.row', 'data', 'engine', 'engine2', 'group',
'lab', 'original', 'predicted_label', 'prediction', 'value', 'type',
"neighbors", ".submodels", "has_submodel", "max_neighbor", "max_penalty",
"max_terms", "max_tree", "model", "name", "num_terms", "penalty", "trees",
"sub_neighbors", ".pred_class", "x", "y", "predictor_indicators",
"compute_intercept", "remove_intercept", "estimate", "term",
"call_info", "component", "component_id", "func", "tunable", "label",
"pkg", ".order", "item", "tunable", "has_ext"
)
)

release_bullets <- function() {
c("Run `knit_engine_docs()` and `devtools::document()` to update docs")
}

# nocov end
57 changes: 57 additions & 0 deletions R/parsnip-package.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#' parsnip
#'
#' The goal of parsnip is to provide a tidy, unified interface to models that
#' can be used to try a range of models without getting bogged down in the
#' syntactical minutiae of the underlying packages.
#'
#' @keywords internal
"_PACKAGE"

## usethis namespace: start
#' @importFrom dplyr arrange bind_cols bind_rows collect full_join group_by
#' @importFrom dplyr mutate pull rename select starts_with summarise tally
#' @importFrom generics varying_args
#' @importFrom glue glue_collapse
#' @importFrom purrr as_vector imap imap_lgl map map_chr map_dbl map_df map_dfr
#' @importFrom purrr map_lgl %||%
#' @importFrom rlang abort call2 caller_env current_env enquo enquos eval_tidy
#' @importFrom rlang expr get_expr is_empty is_missing is_null is_quosure
#' @importFrom rlang is_symbolic lgl missing_arg quo_get_expr quos sym syms
#' @importFrom stats .checkMFClasses .getXlevels as.formula binomial coef
#' @importFrom stats delete.response model.frame model.matrix model.offset
#' @importFrom stats model.response model.weights na.omit na.pass predict qnorm
#' @importFrom stats qt quantile setNames terms update
#' @importFrom tibble as_tibble is_tibble tibble type_sum
#' @importFrom tidyr gather
#' @importFrom utils capture.output getFromNamespace globalVariables head
#' @importFrom utils methods stack
#' @importFrom vctrs vec_size vec_unique
#' @importFrom ggplot2 autoplot
## usethis namespace: end
NULL

# nocov start

utils::globalVariables(
c(
'.', '.label', '.pred', '.row', 'data', 'engine', 'engine2', 'group',
'lab', 'original', 'predicted_label', 'prediction', 'value', 'type',
"neighbors", ".submodels", "has_submodel", "max_neighbor", "max_penalty",
"max_terms", "max_tree", "model", "name", "num_terms", "penalty", "trees",
"sub_neighbors", ".pred_class", "x", "y", "predictor_indicators",
"compute_intercept", "remove_intercept", "estimate", "term",
"call_info", "component", "component_id", "func", "tunable", "label",
"pkg", ".order", "item", "tunable", "has_ext"
)
)

release_bullets <- function() {
c(
"Update parsnip add-in information at `inst/add-in/parsnip_model_db.R`",
"Run `update_model_info_file()` and verify results",
"Run `knit_engine_docs()` and `devtools::document()` to update docs"
)
}

# nocov end

37 changes: 37 additions & 0 deletions man/parsnip-package.Rd

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

0 comments on commit edf88ab

Please sign in to comment.