[R] RMarkdown question
Jeff Newmiller
jdnewmil at dcn.davis.ca.us
Tue Aug 29 21:20:43 CEST 2017
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 new users I have shown knitr to complain of a bait and switch and often wander away as it clearly is not a write-once-output-many tool. But if you are willing to drop the Notebook idea then bookdown is not bad.
There is also a distinct lack of R content in this posting...
--
Sent from my phone. Please excuse my brevity.
On August 29, 2017 11:30:18 AM PDT, Roy Mendelssohn - NOAA Federal <roy.mendelssohn at noaa.gov> wrote:
>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 say that such and such code chunk is an example of how
>to do something, and have that link to the appropriate code chunk.
>
>Thanks for any help.
>
>-Roy
>
>
>
>
>
>**********************
>"The contents of this message do not reflect any position of the U.S.
>Government or NOAA."
>**********************
>Roy Mendelssohn
>Supervisory Operations Research Analyst
>NOAA/NMFS
>Environmental Research Division
>Southwest Fisheries Science Center
>***Note new street address***
>110 McAllister Way
>Santa Cruz, CA 95060
>Phone: (831)-420-3666
>Fax: (831) 420-3980
>e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/
>
>"Old age and treachery will overcome youth and skill."
>"From those who have been given much, much will be expected"
>"the arc of the moral universe is long, but it bends toward justice"
>-MLK Jr.
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list