Skip to content

Commit

Permalink
add cross-references between knit_patterns and all_patterns in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Müller committed Dec 11, 2013
1 parent 2796c2e commit be5390b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion R/pattern.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#' This object is a named list of all built-in patterns.
#' @references Usage: \url{http://yihui.name/knitr/patterns}
#' @export
#' @seealso \link{knit_patterns}
#' @examples all_patterns$rnw; all_patterns$html
#'
#' str(all_patterns)
Expand Down Expand Up @@ -63,8 +64,10 @@ all_patterns = list(
#' Patterns are regular expressions and will be used in functions like
#' \code{\link[base]{grep}} to extract R code and chunk options. The object
#' \code{knit_patterns} controls the patterns currently used; see the references
#' and examples for usage.
#' and examples for usage. All built-in patterns are available in the list
#' \link{all_patterns}.
#'
#' @seealso \link{all_patterns}
#' @references Usage: \url{http://yihui.name/knitr/objects}
#'
#' Components in \code{knit_patterns}: \url{http://yihui.name/knitr/patterns}
Expand Down
3 changes: 3 additions & 0 deletions man/all_patterns.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,7 @@ str(all_patterns)
\references{
Usage: \url{http://yihui.name/knitr/patterns}
}
\seealso{
\link{knit_patterns}
}
\keyword{datasets}
6 changes: 5 additions & 1 deletion man/knit_patterns.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ knit_patterns
Patterns are regular expressions and will be used in functions like
\code{\link[base]{grep}} to extract R code and chunk options. The object
\code{knit_patterns} controls the patterns currently used; see the references
and examples for usage.
and examples for usage. All built-in patterns are available in the list
\link{all_patterns}.
}
\examples{
library(knitr)
Expand All @@ -40,4 +41,7 @@ Usage: \url{http://yihui.name/knitr/objects}

Components in \code{knit_patterns}: \url{http://yihui.name/knitr/patterns}
}
\seealso{
\link{all_patterns}
}
\keyword{datasets}

0 comments on commit be5390b

Please sign in to comment.