Skip to content

Conversation

@jonathanstelman
Copy link

Completed data tidying exercises.
Exported plot, which is added to the repository.

**Could not use knitr without first setting eval=FALSE for each code chunk. **

@charles-lang
Copy link
Contributor

Hi Jonathan, eval = FALSE suppresses the code so it doesn't run. Some part of the code must not be working. I'm not sure which line it is though. Knitr won't produce a document unless all the code is functioning. Did you get an error message at all?

@jonathanstelman
Copy link
Author

So many error messages! Every code block returned an error. I fought with XCode and XQuartz for a very long time today to try to figure out why knitr is getting caught up at each code block, but I'm no closer to a solution. All of the code I that submitted works in the console, though.

@jonathanstelman
Copy link
Author

Really, I only added eval = FALSE in order to make sure that this was the only reason knitr was failing. After adding this line to each code block, I was able to knit to HTML and Word Documents. Seems like I need to install MacTeX to get knitr to make me a PDF, so that's my next step.

@charles-lang
Copy link
Contributor

Oh, ok. That makes sense. Sorry it is being such a hassle!

On Tue, Sep 27, 2016 at 11:29 PM jonathanstelman

<
mailto:jonathanstelman notifications@github.com

wrote:

a, pre, code, a:link, body { word-wrap: break-word !important; }

Really, I only added eval = FALSE in order to make sure that this was the

only

reason knitr was failing. After adding this line to each code block, I was able to knit to HTML and Word Documents. Seems like I need to install MacTeX to get knitr to make me a PDF, so that's my next step.

You are receiving this because you commented.

Reply to this email directly,
#5 (comment)
, or
https://github.com/notifications/unsubscribe-auth/APpSvNTa-nD062MbuhWPibiWyEbOHY-Tks5qud83gaJpZM4KINEw
.

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

Successfully merging this pull request may close these issues.

2 participants