-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
First R code chunk in R Markdown Disappears When Options Specified #280
Comments
Change it to
or
The first argument after the r can't have a comma before it. |
Thanks, @Dasonk You are correct that @jwpaulson was using the wrong syntax. The correct syntax is ````{r options} |
I must have been really tired last night on the plane as that is an obvious error by me. I was trying to reproduce a few problems that users posted and thought I found two at once! Thanks for the immediate response and correction. Josh |
You are not the only person who was confused by the syntax, so this could be well considered as a bug (my philosophy is FAQ's are nearly bugs). The fix will appear in my next push. |
@jwpaulson the comma after |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
Using the latest version of knitr from github (0.6.1, but also repros with 0.5 from CRAN), the first R code chunk will disappear when any option is specified. For example if you place the following code into a test.Rmd file:
Then calling the following command from R (being in the appropriate directory):
It will create a .md file with just
Test
and nothing else. This was discovered in RStudio, but was reproduced outside of RStudio with R 2.14.2 on a Mac running OS X 10.6.8.http://support.rstudio.org/help/discussions/problems/2574-not-recognising-first-r-code-chunk-in-r-markdown
Let me know if you need any additional information to reproduce.
Josh
The text was updated successfully, but these errors were encountered: