Skip to content
Discussion options

You must be logged in to vote

The thing is, I want the html output to show my code. That's why I have eval: FALSE.

For this you need echo: true to show code output. This is the default, eval: false means don't evaluate the code.

Do you want to evaluate de R code ? Do you want the plot in the HTML output ?
If so you need to activate evaluation for the chunk.

If I set the option to TRUE, I won't be able to render the html output at all. If I have no code options enabled, I get an error saying:

"Quitting from lines 233-253 (kapitel_3_R4D_opgaver.qmd)
Fejl i ggplot(data = mpg) : could not find function "ggplot"
Kald: .main ... withVisible -> eval_with_user_handlers -> eval -> eval"

You see this in the error message y…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@KennethGottfredsen
Comment options

Comment options

You must be logged in to vote
2 replies
@KennethGottfredsen
Comment options

@KennethGottfredsen
Comment options

Comment options

You must be logged in to vote
3 replies
@KennethGottfredsen
Comment options

@cderv
Comment options

@KennethGottfredsen
Comment options

Answer selected by KennethGottfredsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants