Skip to content

Commit 09dd842

Browse files
author
hbaniecki
committed
fix CRAN tests
1 parent 7b14bde commit 09dd842

File tree

6 files changed

+44
-16
lines changed

6 files changed

+44
-16
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# modelStudio 1.0.1
2+
* fix `devel-fedora` tests for cran
3+
14
# modelStudio 1.0.0
25
* stable release after fixing minor issues
36
* comply with `R v4.0` changes

R/modelStudio.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
#' @param parallel Speed up the computation using \code{parallelMap::parallelMap()}.
2222
#' See \href{https://modeloriented.github.io/modelStudio/articles/vignette_modelStudio.html#parallel-computation}{\bold{vignette}}.
2323
#' This might interfere with showing progress using \code{show_info}.
24+
#' @param options Customize \code{modelStudio}. See \code{\link{modelStudioOptions}} and
25+
#' \href{https://modeloriented.github.io/modelStudio/articles/vignette_modelStudio.html#plot-options}{\bold{vignette}}.
2426
#' @param viewer Default is \code{external} to display in an external RStudio window.
2527
#' Use \code{browser} to display in an external browser or
2628
#' \code{internal} to use the RStudio internal viewer pane for output.
27-
#' @param options Customize \code{modelStudio}. See \code{\link{modelStudioOptions}} and
28-
#' \href{https://modeloriented.github.io/modelStudio/articles/vignette_modelStudio.html#plot-options}{\bold{vignette}}.
2929
#' @param ... Other parameters.
3030
#'
3131
#' @return An object of the \code{r2d3} class.

docs/articles/vignette_modelStudio.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/news/index.html

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/d3js/hackHead.js

Lines changed: 20 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test_objects.R

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
context("Objects for tests")
2+
13
titanic <- na.omit(DALEX::titanic)
24
apartments <- DALEX::apartments
35
set.seed(1313)
@@ -7,15 +9,15 @@ v <- FALSE
79

810
# Create a model
911
model_titanic_glm <- glm(survived ~.,
10-
data = titanic_imputed,
12+
data = DALEX::titanic_imputed,
1113
family = "binomial")
1214

1315
# Wrap it into an explainer
14-
explain_titanic_glm <- explain(model_titanic_glm,
15-
data = titanic_imputed[,-8],
16-
y = titanic_imputed[,8],
17-
label = "Titanic GLM",
18-
verbose = v)
16+
explain_titanic_glm <- DALEX::explain(model_titanic_glm,
17+
data = DALEX::titanic_imputed[,-8],
18+
y = DALEX::titanic_imputed[,8],
19+
label = "Titanic GLM",
20+
verbose = v)
1921

2022
# Pick some data points
2123
new_observations <- titanic_imputed[1:4,]

0 commit comments

Comments
 (0)