Ann A.
Ann A.

Reputation: 61

Trouble with glmer in R Markdown

everyone. I run a code, which definetly works, but in Markdown (knitting) I see this message:

 error in glmer(accuracy ~ aspect * time + (1 + aspect * time || item.id) + : could not find function "glmer" 
 Calls: <Anonymous> ... handle -> withCallingHandlers -> withVisible -> eval -> eval

However, it works if I run only this chunk by clicking on 'Run current chunk' button. I've checked if the last version of the package is installed.

Upvotes: 1

Views: 1424

Answers (1)

Samuel
Samuel

Reputation: 3053

Try including library(lme4) at the top of the chunk.

Upvotes: 1

Related Questions