Skip to content

Commit

Permalink
better check if pmml is installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhahsler committed Jun 25, 2024
1 parent eacb4e5 commit 1ff499a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions R/pmml.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
#' @references PMML 4.4 - Association Rules.
#' \url{https://dmg.org/pmml/v4-4/AssociationRules.html}
#' @keywords interface
#' @examples
#' ### only run this example if pmml is installed
#' if("pmml" %in% rownames(installed.packages())) {
#' @examplesIf requireNamespace("pmml", quietly = TRUE)
#' data("Groceries")
#'
#' rules <- apriori(Groceries, parameter = list(support = 0.001))
Expand All @@ -56,7 +54,6 @@
#'
#' ### clean up
#' unlink("rules.xml")
#' }
NULL

#' @rdname pmml
Expand Down
5 changes: 2 additions & 3 deletions man/pmml.Rd

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

0 comments on commit 1ff499a

Please sign in to comment.