davidgohel / rvg

https://davidgohel.github.io/rvg/
132 stars 15 forks source link

Crash when clipping #7

Closed davidgohel closed 8 years ago

davidgohel commented 8 years ago

From http://stackoverflow.com/questions/38511118/crash-boruta-plot

library(Boruta)
library(rvg)

# Create example data
fact <- as.factor(c(rep(x = rbinom(50,1,0.5),2)))
A <- rnorm(length(fact))
B <- rlnorm(length(fact))
C <- as.factor(rbinom(length(fact),size = 20,0.75))
example.data <- data.frame(fact,A,B,C)
example.boruta <- Boruta(fact~., example.data)

write_docx(file = "test.docx", code = { plot(example.boruta, las =2, xlim = c(3,6) ) } )
jeroen commented 8 years ago

The error message is:

> write_docx(file = "test.docx", code = { plot(example.boruta, las =2, xlim = c(3,6) ) } )
libc++abi.dylib: terminating with uncaught exception of type std::out_of_range: vector
davidgohel commented 8 years ago

yes, thanks, I had to run that code in command line mode to see the error.