daniel1noble / orchaRd

Extending the Orchard Plot for Meta-analysis
https://daniel1noble.github.io/orchaRd/
11 stars 6 forks source link

Error in model.frame.default(formula, data = data, ...) : 'data' must be a data.frame, environment, or list #5

Closed kiran-lee closed 2 years ago

kiran-lee commented 2 years ago

Hello,

When using orchard_plot or model_results, I run into the following error message: Error in model.frame.default(formula, data = data, ...) : 'data' must be a data.frame, environment, or list

Yet I am definitely specifying the dataframe used for the model.

Do you have any suggestions for the cause?

Kiran

PhD student Division of Biosciences Sheffield University

anantapantulasa commented 2 years ago

I'm having the same issue. Is there a way to fix this?

daniel1noble commented 2 years ago

Hi, I believe this was an issue with emmeans, which I think we've now sorted out. I've pushed updates to orchard to deal with it, so a fresh install might work @kiran-lee and @anantapantulasa . Sorry I missed all this!

daniel1noble commented 2 years ago

An addition to this, the vignette is updated and found here. Just in case you're using something slightly older. The way some arguments work has changed for reasons related to how other packages have also changed, so, this might solve your problems too

daniel1noble commented 2 years ago

I'll close this issue assuming that the updates have solve this problem, but if not we can re-open