Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: flipMultivariates
Type: Package
Title: Multivariate models
Version: 1.2.3
Version: 1.2.4
Author: Displayr <opensource@displayr.com>
Maintainer: Displayr <opensource@displayr.com>
Description: Multivariate models (e.g. LDA, random forest, SVM) according to the flip Project conventions.
Expand Down
6 changes: 4 additions & 2 deletions R/supportvectormachine.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#' @param ... Other arguments to be supplied to \code{\link{svm}}.
#'
#' @importFrom e1071 svm
#' @importFrom flipU StopForUserError
#' @export
SupportVectorMachine <- function(formula,
data = NULL,
Expand All @@ -42,8 +43,9 @@ SupportVectorMachine <- function(formula,
##### Error checking specific to this function ######
####################################################################

if (cost <= 0)
stop("cost must be positive but is ", cost)
if (cost <= 0) {
StopForUserError("cost must be positive but is ", cost)
}

####################################################################
##### Reading in the data and doing some basic tidying ######
Expand Down
Loading