roxygen2/ 0000755 0001762 0000144 00000000000 13571154632 012036 5 ustar ligges users roxygen2/NAMESPACE 0000644 0001762 0000144 00000021211 13570061671 013251 0 ustar ligges users # Generated by roxygen2: do not edit by hand
S3method(block_to_rd,default)
S3method(block_to_rd,roxy_block)
S3method(block_to_rd,roxy_block_r6class)
S3method(c,rd)
S3method(default_export,"NULL")
S3method(default_export,default)
S3method(default_export,rcclass)
S3method(default_export,s3method)
S3method(default_export,s4class)
S3method(default_export,s4generic)
S3method(default_export,s4method)
S3method(format,object)
S3method(format,rd_section)
S3method(format,rd_section_alias)
S3method(format,rd_section_author)
S3method(format,rd_section_backref)
S3method(format,rd_section_concept)
S3method(format,rd_section_description)
S3method(format,rd_section_details)
S3method(format,rd_section_docType)
S3method(format,rd_section_encoding)
S3method(format,rd_section_examples)
S3method(format,rd_section_family)
S3method(format,rd_section_field)
S3method(format,rd_section_formals)
S3method(format,rd_section_format)
S3method(format,rd_section_inherit)
S3method(format,rd_section_inherit_dot_params)
S3method(format,rd_section_inherit_section)
S3method(format,rd_section_keyword)
S3method(format,rd_section_minidesc)
S3method(format,rd_section_name)
S3method(format,rd_section_note)
S3method(format,rd_section_param)
S3method(format,rd_section_rawRd)
S3method(format,rd_section_rcmethods)
S3method(format,rd_section_reexport)
S3method(format,rd_section_references)
S3method(format,rd_section_section)
S3method(format,rd_section_seealso)
S3method(format,rd_section_slot)
S3method(format,rd_section_source)
S3method(format,rd_section_title)
S3method(format,rd_section_usage)
S3method(format,rd_section_value)
S3method(format,roxy_tag)
S3method(merge,rd_section)
S3method(merge,rd_section_inherit)
S3method(merge,rd_section_inherit_dot_params)
S3method(merge,rd_section_inherit_section)
S3method(merge,rd_section_minidesc)
S3method(merge,rd_section_param)
S3method(merge,rd_section_reexport)
S3method(merge,rd_section_section)
S3method(object_defaults,"function")
S3method(object_defaults,data)
S3method(object_defaults,default)
S3method(object_defaults,import)
S3method(object_defaults,package)
S3method(object_defaults,r6class)
S3method(object_defaults,rcclass)
S3method(object_defaults,s3generic)
S3method(object_defaults,s3method)
S3method(object_defaults,s4class)
S3method(object_defaults,s4generic)
S3method(object_defaults,s4method)
S3method(object_format,default)
S3method(print,object)
S3method(print,rd)
S3method(print,rd_section)
S3method(print,roxy_block)
S3method(print,roxy_tag)
S3method(roclet_clean,roclet_namespace)
S3method(roclet_clean,roclet_rd)
S3method(roclet_output,roclet_namespace)
S3method(roclet_output,roclet_rd)
S3method(roclet_output,roclet_vignette)
S3method(roclet_preprocess,default)
S3method(roclet_preprocess,roclet_namespace)
S3method(roclet_process,roclet_namespace)
S3method(roclet_process,roclet_rd)
S3method(roclet_process,roclet_vignette)
S3method(roxy_tag_ns,default)
S3method(roxy_tag_ns,roxy_tag_evalNamespace)
S3method(roxy_tag_ns,roxy_tag_export)
S3method(roxy_tag_ns,roxy_tag_exportClass)
S3method(roxy_tag_ns,roxy_tag_exportMethod)
S3method(roxy_tag_ns,roxy_tag_exportPattern)
S3method(roxy_tag_ns,roxy_tag_exportS3Method)
S3method(roxy_tag_ns,roxy_tag_import)
S3method(roxy_tag_ns,roxy_tag_importClassesFrom)
S3method(roxy_tag_ns,roxy_tag_importFrom)
S3method(roxy_tag_ns,roxy_tag_importMethodsFrom)
S3method(roxy_tag_ns,roxy_tag_rawNamespace)
S3method(roxy_tag_ns,roxy_tag_useDynLib)
S3method(roxy_tag_parse,default)
S3method(roxy_tag_parse,roxy_tag_aliases)
S3method(roxy_tag_parse,roxy_tag_author)
S3method(roxy_tag_parse,roxy_tag_backref)
S3method(roxy_tag_parse,roxy_tag_concept)
S3method(roxy_tag_parse,roxy_tag_describeIn)
S3method(roxy_tag_parse,roxy_tag_description)
S3method(roxy_tag_parse,roxy_tag_details)
S3method(roxy_tag_parse,roxy_tag_docType)
S3method(roxy_tag_parse,roxy_tag_encoding)
S3method(roxy_tag_parse,roxy_tag_eval)
S3method(roxy_tag_parse,roxy_tag_evalNamespace)
S3method(roxy_tag_parse,roxy_tag_evalRd)
S3method(roxy_tag_parse,roxy_tag_example)
S3method(roxy_tag_parse,roxy_tag_examples)
S3method(roxy_tag_parse,roxy_tag_export)
S3method(roxy_tag_parse,roxy_tag_exportClass)
S3method(roxy_tag_parse,roxy_tag_exportMethod)
S3method(roxy_tag_parse,roxy_tag_exportPattern)
S3method(roxy_tag_parse,roxy_tag_exportS3Method)
S3method(roxy_tag_parse,roxy_tag_family)
S3method(roxy_tag_parse,roxy_tag_field)
S3method(roxy_tag_parse,roxy_tag_format)
S3method(roxy_tag_parse,roxy_tag_import)
S3method(roxy_tag_parse,roxy_tag_importClassesFrom)
S3method(roxy_tag_parse,roxy_tag_importFrom)
S3method(roxy_tag_parse,roxy_tag_importMethodsFrom)
S3method(roxy_tag_parse,roxy_tag_include)
S3method(roxy_tag_parse,roxy_tag_includeRmd)
S3method(roxy_tag_parse,roxy_tag_inherit)
S3method(roxy_tag_parse,roxy_tag_inheritDotParams)
S3method(roxy_tag_parse,roxy_tag_inheritParams)
S3method(roxy_tag_parse,roxy_tag_inheritSection)
S3method(roxy_tag_parse,roxy_tag_keywords)
S3method(roxy_tag_parse,roxy_tag_md)
S3method(roxy_tag_parse,roxy_tag_method)
S3method(roxy_tag_parse,roxy_tag_name)
S3method(roxy_tag_parse,roxy_tag_noMd)
S3method(roxy_tag_parse,roxy_tag_noRd)
S3method(roxy_tag_parse,roxy_tag_note)
S3method(roxy_tag_parse,roxy_tag_order)
S3method(roxy_tag_parse,roxy_tag_param)
S3method(roxy_tag_parse,roxy_tag_rawNamespace)
S3method(roxy_tag_parse,roxy_tag_rawRd)
S3method(roxy_tag_parse,roxy_tag_rdname)
S3method(roxy_tag_parse,roxy_tag_references)
S3method(roxy_tag_parse,roxy_tag_return)
S3method(roxy_tag_parse,roxy_tag_returns)
S3method(roxy_tag_parse,roxy_tag_section)
S3method(roxy_tag_parse,roxy_tag_seealso)
S3method(roxy_tag_parse,roxy_tag_slot)
S3method(roxy_tag_parse,roxy_tag_source)
S3method(roxy_tag_parse,roxy_tag_template)
S3method(roxy_tag_parse,roxy_tag_templateVar)
S3method(roxy_tag_parse,roxy_tag_title)
S3method(roxy_tag_parse,roxy_tag_usage)
S3method(roxy_tag_parse,roxy_tag_useDynLib)
S3method(roxy_tag_rd,roxy_tag_.formals)
S3method(roxy_tag_rd,roxy_tag_.methods)
S3method(roxy_tag_rd,roxy_tag_.reexport)
S3method(roxy_tag_rd,roxy_tag_author)
S3method(roxy_tag_rd,roxy_tag_backref)
S3method(roxy_tag_rd,roxy_tag_concept)
S3method(roxy_tag_rd,roxy_tag_description)
S3method(roxy_tag_rd,roxy_tag_details)
S3method(roxy_tag_rd,roxy_tag_docType)
S3method(roxy_tag_rd,roxy_tag_encoding)
S3method(roxy_tag_rd,roxy_tag_evalRd)
S3method(roxy_tag_rd,roxy_tag_example)
S3method(roxy_tag_rd,roxy_tag_examples)
S3method(roxy_tag_rd,roxy_tag_family)
S3method(roxy_tag_rd,roxy_tag_field)
S3method(roxy_tag_rd,roxy_tag_format)
S3method(roxy_tag_rd,roxy_tag_includeRmd)
S3method(roxy_tag_rd,roxy_tag_inherit)
S3method(roxy_tag_rd,roxy_tag_inheritDotParams)
S3method(roxy_tag_rd,roxy_tag_inheritParams)
S3method(roxy_tag_rd,roxy_tag_inheritSection)
S3method(roxy_tag_rd,roxy_tag_keywords)
S3method(roxy_tag_rd,roxy_tag_note)
S3method(roxy_tag_rd,roxy_tag_param)
S3method(roxy_tag_rd,roxy_tag_rawRd)
S3method(roxy_tag_rd,roxy_tag_references)
S3method(roxy_tag_rd,roxy_tag_return)
S3method(roxy_tag_rd,roxy_tag_returns)
S3method(roxy_tag_rd,roxy_tag_section)
S3method(roxy_tag_rd,roxy_tag_seealso)
S3method(roxy_tag_rd,roxy_tag_slot)
S3method(roxy_tag_rd,roxy_tag_source)
S3method(roxy_tag_rd,roxy_tag_title)
S3method(roxy_tag_rd,roxy_tag_usage)
export(block_get_tag)
export(block_get_tag_value)
export(block_get_tags)
export(block_has_tags)
export(env_file)
export(env_package)
export(is_s3_generic)
export(is_s3_method)
export(load_installed)
export(load_options)
export(load_pkgload)
export(load_source)
export(namespace_roclet)
export(object)
export(object_format)
export(parse_file)
export(parse_package)
export(parse_text)
export(rd_roclet)
export(rd_section)
export(roc_proc_text)
export(roclet)
export(roclet_clean)
export(roclet_find)
export(roclet_output)
export(roclet_preprocess)
export(roclet_process)
export(roclet_tags)
export(roxy_block)
export(roxy_meta_get)
export(roxy_tag)
export(roxy_tag_parse)
export(roxy_tag_rd)
export(roxy_tag_warning)
export(roxygenise)
export(roxygenize)
export(tag_code)
export(tag_examples)
export(tag_inherit)
export(tag_markdown)
export(tag_markdown_with_sections)
export(tag_name)
export(tag_name_description)
export(tag_toggle)
export(tag_two_part)
export(tag_value)
export(tag_words)
export(tag_words_line)
export(update_collate)
export(vignette_roclet)
import(rlang)
import(stringr)
importFrom(R6,R6Class)
importFrom(Rcpp,sourceCpp)
importFrom(purrr,map)
importFrom(purrr,map2)
importFrom(purrr,map_chr)
importFrom(purrr,map_int)
importFrom(purrr,map_lgl)
importFrom(stats,setNames)
importFrom(utils,URLdecode)
importFrom(utils,URLencode)
importFrom(utils,head)
importFrom(utils,tail)
importFrom(xml2,xml_attr)
importFrom(xml2,xml_children)
importFrom(xml2,xml_contents)
importFrom(xml2,xml_find_all)
importFrom(xml2,xml_name)
importFrom(xml2,xml_text)
importFrom(xml2,xml_type)
useDynLib(roxygen2, .registration=TRUE)
roxygen2/README.md 0000644 0001762 0000144 00000005440 13540202201 013276 0 ustar ligges users # roxygen2
[](https://CRAN.R-project.org/package=roxygen2)
[](https://dev.azure.com/r-lib/roxygen2/_build/latest?definitionId=1&branchName=master)
[](https://dev.azure.com/r-lib/roxygen2/_build/latest?definitionId=1&branchName=master)
[](https://dev.azure.com/r-lib/roxygen2/_build/latest?definitionId=1&branchName=master)
The premise of roxygen2 is simple: describe your functions in comments next to their definitions and roxygen2 will process your source code and comments to automatically generate `.Rd` files in `man/`, `NAMESPACE`, and, if needed, the `Collate` field in `DESCRIPTION`.
## Installation
```R
# Install devtools from CRAN
install.packages("roxygen2")
# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("r-lib/roxygen2")
```
## Usage
The premise of roxygen2 is simple: describe your functions in comments next to their definitions and roxygen2 will process your source code and comments to produce Rd files in the `man/` directory. Here's a [simple example](https://stringr.tidyverse.org/reference/str_length.html) from the stringr package:
```R
#' The length of a string
#'
#' Technically this returns the number of "code points", in a string. One
#' code point usually corresponds to one character, but not always. For example,
#' an u with a umlaut might be represented as a single character or as the
#' combination a u and an umlaut.
#'
#' @inheritParams str_detect
#' @return A numeric vector giving number of characters (code points) in each
#' element of the character vector. Missing string have missing length.
#' @seealso [stringi::stri_length()] which this function wraps.
#' @export
#' @examples
#' str_length(letters)
#' str_length(NA)
#' str_length(factor("abc"))
#' str_length(c("i", "like", "programming", NA))
str_length <- function(string) {
}
```
When you `roxygenise()` (or `devtools::document()`) your package these comments will be automatically transformed to the `.Rd` that R uses to generate the documentation you see when you type `?str_length`.
## Learn more
To get started, first read `vignette("roxygen2")`. Then read more about the specific package component that you want to generate:
* For `.Rd` documentation files, read `vignette("rd")`.
* For the `NAMESPACE`, read `vignette("namespace")`.
* For the `Collate` field in the `DESCRIPTION`, read `update_collate()`.
roxygen2/man/ 0000755 0001762 0000144 00000000000 13567327052 012614 5 ustar ligges users roxygen2/man/load_options.Rd 0000644 0001762 0000144 00000001336 13544715370 015577 0 ustar ligges users % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/options.R
\name{load_options}
\alias{load_options}
\alias{roxy_meta_get}
\title{Load roxygen2 options}
\usage{
load_options(base_path = ".")
roxy_meta_get(key = NULL, default = NULL)
}
\arguments{
\item{base_path}{Path to package.}
}
\description{
Options can be stored in the \code{Roxygen} field of the \code{DESCRIPTION}, or
in \code{man/roxygen/meta.R}. In either case, the code is parsed and evaluated
in a child of the base environment. Call \code{roxy_meta_get()} to access
current option values from within tag and roclet methods.
}
\details{
Options in \code{man/roxygen/meta.R} override those present in \code{DESCRIPTION}.
}
\keyword{internal}
roxygen2/man/load.Rd 0000644 0001762 0000144 00000003041 13541216367 014016 0 ustar ligges users % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load.R
\name{load}
\alias{load}
\alias{load_pkgload}
\alias{load_installed}
\alias{load_source}
\title{Load package code}
\usage{
load_pkgload(path)
load_installed(path)
load_source(path)
}
\arguments{
\item{path}{Path to source package}
}
\description{
roxygen2 is a dynamic documentation system, which means it works with the
objects inside your package, not just the source code used to create them.
These functions offer various ways of loading your package to suit various
constraints:
\itemize{
\item \code{load_pkgload()} uses \code{pkgload::load_all()} to simulate package loading
as closely as we know how. It offers high fidelity handling of code that
uses S4, but requires that the package be compiled.
\item \code{load_source()} simulates package loading by attaching packages listed in
\code{Depends} and \code{Imports}, then sources all files in the \verb{R/} directory.
This was the default strategy used in roxygen2 6.0.0 and earlier;
it's primary advantage is that it does not need compilation.
\item \code{load_installed()} uses the installed version of the package. Use this
strategy if you have installed a development version of the package
already. This is the highest fidelity strategy, but requires work
outside of roxygen2.
}
You can change the default strategy for your function with roxygen2 \code{load}
option. Override the default off \code{pkgload} to use the \code{source} or
\code{installed} strategies:\preformatted{RoxygenNote: list(load = "source")
}
}
roxygen2/man/tag_parsers.Rd 0000644 0001762 0000144 00000002740 13545643447 015425 0 ustar ligges users % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tag-parser.R
\name{tag_parsers}
\alias{tag_parsers}
\alias{tag_value}
\alias{tag_inherit}
\alias{tag_name}
\alias{tag_two_part}
\alias{tag_name_description}
\alias{tag_words}
\alias{tag_words_line}
\alias{tag_toggle}
\alias{tag_code}
\alias{tag_examples}
\alias{tag_markdown}
\alias{tag_markdown_with_sections}
\title{Parse tags}
\usage{
tag_value(x)
tag_inherit(x)
tag_name(x)
tag_two_part(x, first, second, required = TRUE, markdown = TRUE)
tag_name_description(x)
tag_words(x, min = 0, max = Inf)
tag_words_line(x)
tag_toggle(x)
tag_code(x)
tag_examples(x)
tag_markdown(x)
tag_markdown_with_sections(x)
}
\arguments{
\item{x}{A \link{roxy_tag} object to parse}
\item{first, second}{Name of first and second parts of two part tags}
\item{required}{Is the second part required (TRUE) or can it be blank
(FALSE)?}
\item{markdown}{Should the second part be parsed as markdown?}
\item{min, max}{Minimum and maximum number of words}
}
\value{
A \link{roxy_tag} object with the \code{val} field set to the parsed value.
}
\description{
These functions parse the \code{raw} tag value, convert a string into a richer R
object and storing it in \code{val}, or provide an informative warning and
returning \code{NULL}.
}
\section{New tag}{
To create a new \verb{@mytag} define \code{roxy_tag_parse.roxy_tag_mytag()}. It should
either call one of the functions here, or directly set \code{x$val}.
}
\keyword{internal}
roxygen2/man/RoxyTopic.Rd 0000644 0001762 0000144 00000016356 13560326573 015056 0 ustar ligges users % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/topic.R
\name{RoxyTopic}
\alias{RoxyTopic}
\title{A \code{RoxyTopic} is an ordered collection of unique rd_sections}
\description{
A \code{RoxyTopic} object corresponds to a generated \code{.Rd} file.
}
\keyword{internal}
\section{Public fields}{
\if{html}{\out{