Running examples in 'dtree-Ex.R' failed
The error occurred in:


R Under development (unstable) (2018-11-08 r75566) -- "Unsuffered Consequences"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> pkgname <- "dtree"
> source(file.path(R.home("share"), "R", "examples-header.R"))
> options(warn = 1)
> options(pager = "console")
> library('dtree')
Loading required package: rpart
Loading required package: party
Loading required package: grid
Loading required package: mvtnorm
Loading required package: modeltools
Loading required package: stats4
Loading required package: strucchange
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Loading required package: sandwich
Loading required package: evtree
Loading required package: partykit
Loading required package: libcoin

Attaching package: 'partykit'

The following objects are masked from 'package:party':

    cforest, ctree, ctree_control, edge_simple, mob, mob_control,
    node_barplot, node_bivplot, node_boxplot, node_inner, node_surv,
    node_terminal, varimp

Loading required package: caret
Loading required package: lattice
Loading required package: ggplot2
Warning: namespace 'Biobase' is not available and has been replaced
by .GlobalEnv when processing object ''
Warning: namespace 'Biobase' is not available and has been replaced
by .GlobalEnv when processing object ''
Warning: namespace 'Biobase' is not available and has been replaced
by .GlobalEnv when processing object ''
Warning: namespace 'Biobase' is not available and has been replaced
by .GlobalEnv when processing object ''
Warning: namespace 'Biobase' is not available and has been replaced
by .GlobalEnv when processing object ''
Warning: namespace 'Biobase' is not available and has been replaced
by .GlobalEnv when processing object ''
Error: package or namespace load failed for 'caret':
 Function found when exporting methods from the namespace 'dimRed' which is not S4 generic: 'nrow'
Error: package 'caret' could not be loaded
Execution halted