0

I am trying to use the unfold function from package RcmdrPlugin.survival. I used the following command:

long.df <- unfold(testdf,time="deathint", event="death",
                  cov=list(31:70,71:110), cov.names=c("adopted","age"))

However, R is returning the following error message:

Error in structure(.External(.C_dotTcl, ...), class = "tclObj") : [tcl] wrong # args: should be "winfo rootx window".

I am using R version 3.2.4. Any suggestions?

Donal Fellows
  • 133,037
  • 18
  • 149
  • 215
EdSeab
  • 3
  • 1
  • Sounds like a bug in an R package. The `winfo rootx` command only ever takes one argument, and hasn't changed in _decades._ – Donal Fellows May 24 '16 at 08:29
  • I would think this to be an @JohnFox question/bug report. You ought to make a reproducible example. – IRTFM May 24 '16 at 17:30
  • Thanks, I'll do that. This wouldn't be an issue - I can use alternatives to `unfold` - only I'm trying to reproduce someone else's results using their code. I know the command worked for them when they wrote the code, so the package must have compatibility issues with more recent versions of R. – EdSeab May 24 '16 at 19:22
  • May I ask what alternative you used? – nasim May 05 '17 at 17:59

1 Answers1

1

I had the same problem in R studio. This is how I solved it: intall.packages("Rcmdr") It installed R commander gui for me,then I went to R commander gui, installed and loaded RcdmrPlugin.survival and then I ran unfold from there and it worked.

nasim
  • 725
  • 2
  • 8
  • 17
  • However, after unfolding, all of the event.time values are zero, no matter if the event happened or not! – nasim May 04 '17 at 22:32