Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find function "test" #140

Open
mikeypasek opened this issue Nov 14, 2018 · 7 comments
Open

Could not find function "test" #140

mikeypasek opened this issue Nov 14, 2018 · 7 comments

Comments

@mikeypasek
Copy link

Hi,

I have it a model in lmer and am trying to run powerSim on it. I have been getting an error message for each iteration that reads: "Testing ### could not find function "test""

Any guidance on what might be taking place would be appreciated!

Thank you,

Michael

@pitakakariki
Copy link
Owner

What was the model specification, and how was your call to powerSim phrased?

@mikeypasek
Copy link
Author

mikeypasek commented Nov 15, 2018 via email

@pitakakariki
Copy link
Owner

If it happens again, could you send me the output of sessionInfo() please? There might be some way to avoid that sort of interference.

@mikeypasek
Copy link
Author

mikeypasek commented Nov 15, 2018 via email

@mikeypasek
Copy link
Author

mikeypasek commented Nov 16, 2018 via email

@pitakakariki
Copy link
Owner

Not sure what would be causing that, but you might try:

table(data$iv1)
table(getData(model2)$iv1)

and the same for iv2.

@jritch
Copy link

jritch commented Nov 24, 2019

I ran into a similar issue.

What was wrong was that I was loading the simr library before I loaded the tidyverse library, and the stringr tidyverse package was masking the fixed() function from simr.

library(simr)
library(tidyverse)

image

Reversing the order in which I loaded the libraries and restarting R fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants