Re: [R] Double / single backticks for inline R code in an Rmarkdown file

2019-10-14 Thread Ashim Kapoor
Dear Yihui, Thank you and Best Regards, Ashim On Mon, Oct 14, 2019 at 7:30 PM Yihui Xie wrote: > params$data is "hawaii" in this case, so the output of > > ``r params$data`` > > is > > `hawaii` > > The double backticks don't have any special meaning here. Only the > inside pair of

Re: [R] Double / single backticks for inline R code in an Rmarkdown file

2019-10-14 Thread Yihui Xie
params$data is "hawaii" in this case, so the output of ``r params$data`` is `hawaii` The double backticks don't have any special meaning here. Only the inside pair of backticks (i.e. `r `) makes sense to R Markdown (or precisely speaking, knitr). The outside pair will be left untouched

Re: [R] Double / single backticks for inline R code in an Rmarkdown file

2019-10-14 Thread Ashim Kapoor
Dear Jeff, Many thanks for your reply. Best, Ashim On Mon, Oct 14, 2019 at 7:07 PM Jeff Newmiller wrote: > No, you don't misunderstand. But you might want to be aware that targeting > PDF output uses LaTeX which regards double backticks as a method of > encoding a left curly double quote

Re: [R] Double / single backticks for inline R code in an Rmarkdown file

2019-10-14 Thread Jeff Newmiller
No, you don't misunderstand. But you might want to be aware that targeting PDF output uses LaTeX which regards double backticks as a method of encoding a left curly double quote mark, so this error could derive from an incomplete adaptation of the Rmd file for HTML output even though such a

[R] Double / single backticks for inline R code in an Rmarkdown file

2019-10-14 Thread Ashim Kapoor
Dear All, I am reading this file :- https://rmarkdown.rstudio.com/lesson-6.html My query is : In line 14 of the above file, ie. The [marmap](https://cran.r-project.org/web/packages/marmap/index.html) package provides tools and data for visualizing the ocean floor. Here is an example contour