Trying to plot createTreeView and get the Error in tools:::httpdPort > 0L

262 views Asked by At

Recently, I started using R Revolution, and I tried to run a example code to visualize a decision tree.

I ran the code:

data("kyphosis", package="rpart") 
kyphTree <- rxDTree(Kyphosis ~ Age + Start + Number, data = kyphosis, cp=0.01) 
library(RevoTreeView)
plot(createTreeView(kyphTree))

And got the error:

Error in tools:::httpdPort > 0L : 
  comparison (6) is possible only for atomic and list types

I searched about this error, I'm using the R 3.2.2 and already updated my Rstudio.

Someone could help me?

Tks,

1

There are 1 answers

1
Derek McCrae Norton On

Your problem is not related to RStudio. It appears to be a bug in the plot function for revoTreeView. The error shows that a comparison is being made with tools:::httpdPort (first few lines of the plot.revoTreeView function). This is a function, not a number. Please submit through your Microsoft support channels.