0

I'm having this problem: all code chunks run fine. But when trying to knit to HTLM file the error message appear. How to solve this?

movies <- mutate(movies, feature_film = ifelse(title_type =="Feature Film", "yes", "no")) 
movies$feature_film <- as.factor(movies$feature_film)

Error in mutate_(.data,.dots = lazyeval : : lazy_dots(. . .) : object ´movies´not found calls : . . . withVisible -> eval -> eval -> mutate -> mutate Execution halted

1
  • 3
    My guess is that movies is in your environment so R finds it when running the chunks in the console. You need to make sure movies is available in the rmarkdown Commented Jun 30, 2017 at 21:18

1 Answer 1

1

Likely the markdown document doesn't have the object loaded. This isn't somewhere in the document:

load(file="your_data.RData")

EDIT: comment already saying pretty much this, apologies.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.