Re: [R] RMarkdown question

2017-08-29 Thread Roy Mendelssohn - NOAA Federal
Thanks. I will try that and see if I can get it to work. I am working on a vignette for a package. I should have been more careful in my wording, it was really a RMarkdown question, not specifically an RNotebook question. I will leave to others to decide if that implies R content, I am jus

Re: [R] RMarkdown question

2017-08-29 Thread Yihui Xie
Although it is not an elegant solution, but if your output format is HTML, you can add an arbitrary empty HTML element like before your code chunk. Then you can jump to this via a link like "see [this code chunk](#foo)". Regards, Yihui -- https://yihui.name On Tue, Aug 29, 2017 at 1:30 PM, Roy

Re: [R] RMarkdown question

2017-08-29 Thread Jeff Newmiller
You are sadly confusing R Notebooks with other knitr-based processing formats such as bookdown/LaTeX, as I have in the past. The features available for cross-referencing are strongly tied to the underlying handling of knitr output. This area of "knitr" functionality is a recurring area where ne

[R] RMarkdown question

2017-08-29 Thread Roy Mendelssohn - NOAA Federal
Hi All: In creating a R Notebook I know that in the text I can link to a (sub) section by using the command: [Header 1](#anchor) and putting the appropriate anchor name at the appropriate header. But can the same be done for code chunks, if the code chunk is named? What I want to do is