Closed richarddmorey closed 10 years ago
This works:
#!/usr/bin/Rscript
require(methods)
require(BayesFactor)
options(BFprogress=FALSE)
data(puzzles)
md = anovaBF(RT ~ shape + color + shape:color + ID, whichRandom = "ID", data = puzzles)
print(md)
It seems the methods
package is needed, and also progress bars must be turned off. From the help on Rscript: "The default for Rscript omits methods as it takes about 60% of the startup time."
Yes this works. Thanks a lot!
Oliver
This is even more elegant and should be maybe done by default:
options(BFprogress=interactive())
Well, the only complication is if the user has already set a BFprogress value, we don't want to overwrite it. But I was planning on adding something like that, yes.
Looks like the bad behavior is caused by a bug in the pbapply
package. I've reported it to the author.
Just merged code that fixes this.
The following script causes an error:
Rscript
should work without problem; I'm not sure what the error is here.version
yields:BFInfo()
yields: