aboutsummaryrefslogtreecommitdiff
path: root/R/gensvm.grid.R
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2018-04-23 16:39:39 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2018-04-23 16:39:39 +0100
commit62b436bdf6482e5670a10802d51c6d42984878ac (patch)
treed19a082cac7e1c8905683e3a6a8cc2e440c98d32 /R/gensvm.grid.R
parentAdd maintainer to description file (diff)
downloadrgensvm-62b436bdf6482e5670a10802d51c6d42984878ac.tar.gz
rgensvm-62b436bdf6482e5670a10802d51c6d42984878ac.zip
Replace dontrun with donttest
Diffstat (limited to 'R/gensvm.grid.R')
-rw-r--r--R/gensvm.grid.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/gensvm.grid.R b/R/gensvm.grid.R
index 599b588..e76e17e 100644
--- a/R/gensvm.grid.R
+++ b/R/gensvm.grid.R
@@ -130,7 +130,7 @@
#' x <- iris[, -5]
#' y <- iris[, 5]
#'
-#' \dontrun{
+#' \donttest{
#' # use the default parameter grid
#' grid <- gensvm.grid(x, y, verbose=TRUE)
#' }
@@ -142,7 +142,7 @@
#' # print the result
#' print(grid)
#'
-#' \dontrun{
+#' \donttest{
#' # Using a custom scoring function (accuracy as percentage)
#' acc.pct <- function(yt, yp) { return (100 * sum(yt == yp) / length(yt)) }
#' grid <- gensvm.grid(x, y, scoring=acc.pct)