简体   繁体   中英

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

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,

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM