Skip to content

Commit

Permalink
fix CRAN tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hbaniecki committed Mar 13, 2020
1 parent 7b14bde commit 09dd842
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 16 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# modelStudio 1.0.1
* fix `devel-fedora` tests for cran

# modelStudio 1.0.0
* stable release after fixing minor issues
* comply with `R v4.0` changes
Expand Down
4 changes: 2 additions & 2 deletions R/modelStudio.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
#' @param parallel Speed up the computation using \code{parallelMap::parallelMap()}.
#' See \href{https://modeloriented.github.io/modelStudio/articles/vignette_modelStudio.html#parallel-computation}{\bold{vignette}}.
#' This might interfere with showing progress using \code{show_info}.
#' @param options Customize \code{modelStudio}. See \code{\link{modelStudioOptions}} and
#' \href{https://modeloriented.github.io/modelStudio/articles/vignette_modelStudio.html#plot-options}{\bold{vignette}}.
#' @param viewer Default is \code{external} to display in an external RStudio window.
#' Use \code{browser} to display in an external browser or
#' \code{internal} to use the RStudio internal viewer pane for output.
#' @param options Customize \code{modelStudio}. See \code{\link{modelStudioOptions}} and
#' \href{https://modeloriented.github.io/modelStudio/articles/vignette_modelStudio.html#plot-options}{\bold{vignette}}.
#' @param ... Other parameters.
#'
#' @return An object of the \code{r2d3} class.
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/vignette_modelStudio.html

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

11 changes: 10 additions & 1 deletion docs/news/index.html

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

26 changes: 20 additions & 6 deletions inst/d3js/hackHead.js

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

14 changes: 8 additions & 6 deletions tests/testthat/test_objects.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
context("Objects for tests")

titanic <- na.omit(DALEX::titanic)
apartments <- DALEX::apartments
set.seed(1313)
Expand All @@ -7,15 +9,15 @@ v <- FALSE

# Create a model
model_titanic_glm <- glm(survived ~.,
data = titanic_imputed,
data = DALEX::titanic_imputed,
family = "binomial")

# Wrap it into an explainer
explain_titanic_glm <- explain(model_titanic_glm,
data = titanic_imputed[,-8],
y = titanic_imputed[,8],
label = "Titanic GLM",
verbose = v)
explain_titanic_glm <- DALEX::explain(model_titanic_glm,
data = DALEX::titanic_imputed[,-8],
y = DALEX::titanic_imputed[,8],
label = "Titanic GLM",
verbose = v)

# Pick some data points
new_observations <- titanic_imputed[1:4,]
Expand Down

0 comments on commit 09dd842

Please sign in to comment.