Skip to content

Commit 37564bd

Browse files
committed
Update vignettes
1 parent 24faf7c commit 37564bd

12 files changed

+695
-1740
lines changed

vignettes/collate.R

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
## ----, echo = FALSE, message = FALSE-------------------------------------
2-
knitr::opts_chunk$set(
3-
comment = "#>",
4-
error = FALSE,
5-
tidy = FALSE
6-
)
1+
## ---- include = FALSE----------------------------------------------------
2+
knitr::opts_chunk$set(comment = "#>", collapse = TRUE)
73

8-
## ----, eval = FALSE------------------------------------------------------
4+
## ---- eval = FALSE-------------------------------------------------------
95
# #' @include class-a.r
106
# setClass("B", contains = "A")
117

vignettes/collate.html

Lines changed: 54 additions & 197 deletions
Large diffs are not rendered by default.

vignettes/formatting.R

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
## ----, echo = FALSE, message = FALSE-------------------------------------
2-
knitr::opts_chunk$set(
3-
comment = "#>",
4-
error = FALSE,
5-
tidy = FALSE
6-
)
1+
## ---- include = FALSE----------------------------------------------------
2+
knitr::opts_chunk$set(comment = "#>", collapse = TRUE)
73

84
## ------------------------------------------------------------------------
95
#' \enumerate{

vignettes/formatting.html

Lines changed: 91 additions & 248 deletions
Large diffs are not rendered by default.

vignettes/namespace.R

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
## ----, echo = FALSE, message = FALSE-------------------------------------
2-
knitr::opts_chunk$set(
3-
comment = "#>",
4-
error = FALSE,
5-
tidy = FALSE
6-
)
1+
## ---- include = FALSE----------------------------------------------------
2+
knitr::opts_chunk$set(comment = "#>", collapse = TRUE)
73

vignettes/namespace.html

Lines changed: 48 additions & 213 deletions
Large diffs are not rendered by default.

vignettes/rd.R

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
## ---- echo = FALSE, message = FALSE--------------------------------------
2-
knitr::opts_chunk$set(
3-
comment = "#>",
4-
error = FALSE,
5-
tidy = FALSE,
6-
collapse = TRUE
7-
)
1+
## ---- include = FALSE----------------------------------------------------
2+
knitr::opts_chunk$set(comment = "#>", collapse = TRUE)
83

94
## ------------------------------------------------------------------------
105
#' Add together two numbers

vignettes/rd.html

Lines changed: 311 additions & 583 deletions
Large diffs are not rendered by default.

vignettes/rdkeywords.R

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
## ----, echo = FALSE, message = FALSE-------------------------------------
2-
knitr::opts_chunk$set(
3-
comment = "#>",
4-
error = FALSE,
5-
tidy = FALSE
6-
)
1+
## ---- include = FALSE----------------------------------------------------
2+
knitr::opts_chunk$set(comment = "#>", collapse = TRUE)
73

84
## ------------------------------------------------------------------------
95
cat(readLines(file.path(R.home("doc"), "KEYWORDS")), sep = "\n")

vignettes/rdkeywords.html

Lines changed: 138 additions & 280 deletions
Large diffs are not rendered by default.

vignettes/roxygen2.R

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
## ----, echo = FALSE, message = FALSE-------------------------------------
2-
knitr::opts_chunk$set(
3-
comment = "#>",
4-
error = FALSE,
5-
tidy = FALSE
6-
)
1+
## ---- include = FALSE----------------------------------------------------
2+
knitr::opts_chunk$set(comment = "#>", collapse = TRUE)
73

vignettes/roxygen2.html

Lines changed: 40 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -1,213 +1,72 @@
11
<!DOCTYPE html>
2-
<html>
3-
<head>
4-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
52

6-
<title>Introduction to roxygen2</title>
3+
<html xmlns="http://www.w3.org/1999/xhtml">
74

8-
<script type="text/javascript">
9-
window.onload = function() {
10-
var imgs = document.getElementsByTagName('img'), i, img;
11-
for (i = 0; i < imgs.length; i++) {
12-
img = imgs[i];
13-
// center an image if it is the only element of its parent
14-
if (img.parentElement.childElementCount === 1)
15-
img.parentElement.style.textAlign = 'center';
16-
}
17-
};
18-
</script>
5+
<head>
196

7+
<meta charset="utf-8">
8+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9+
<meta name="generator" content="pandoc" />
2010

11+
<meta name="author" content="Hadley Wickham" />
2112

13+
<meta name="date" content="2015-10-28" />
2214

15+
<title>Introduction to roxygen2</title>
2316

24-
<style type="text/css">
25-
body, td {
26-
font-family: sans-serif;
27-
background-color: white;
28-
font-size: 13px;
29-
}
30-
31-
body {
32-
max-width: 800px;
33-
margin: auto;
34-
padding: 1em;
35-
line-height: 20px;
36-
}
37-
38-
tt, code, pre {
39-
font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace;
40-
}
41-
42-
h1 {
43-
font-size:2.2em;
44-
}
45-
46-
h2 {
47-
font-size:1.8em;
48-
}
49-
50-
h3 {
51-
font-size:1.4em;
52-
}
53-
54-
h4 {
55-
font-size:1.0em;
56-
}
57-
58-
h5 {
59-
font-size:0.9em;
60-
}
61-
62-
h6 {
63-
font-size:0.8em;
64-
}
65-
66-
a:visited {
67-
color: rgb(50%, 0%, 50%);
68-
}
69-
70-
pre, img {
71-
max-width: 100%;
72-
}
73-
pre {
74-
overflow-x: auto;
75-
}
76-
pre code {
77-
display: block; padding: 0.5em;
78-
}
79-
80-
code {
81-
font-size: 92%;
82-
border: 1px solid #ccc;
83-
}
84-
85-
code[class] {
86-
background-color: #F8F8F8;
87-
}
88-
89-
table, td, th {
90-
border: none;
91-
}
92-
93-
blockquote {
94-
color:#666666;
95-
margin:0;
96-
padding-left: 1em;
97-
border-left: 0.5em #EEE solid;
98-
}
99-
100-
hr {
101-
height: 0px;
102-
border-bottom: none;
103-
border-top-width: thin;
104-
border-top-style: dotted;
105-
border-top-color: #999999;
106-
}
107-
108-
@media print {
109-
* {
110-
background: transparent !important;
111-
color: black !important;
112-
filter:none !important;
113-
-ms-filter: none !important;
114-
}
115-
116-
body {
117-
font-size:12pt;
118-
max-width:100%;
119-
}
120-
121-
a, a:visited {
122-
text-decoration: underline;
123-
}
124-
125-
hr {
126-
visibility: hidden;
127-
page-break-before: always;
128-
}
129-
130-
pre, blockquote {
131-
padding-right: 1em;
132-
page-break-inside: avoid;
133-
}
134-
135-
tr, img {
136-
page-break-inside: avoid;
137-
}
138-
139-
img {
140-
max-width: 100% !important;
141-
}
142-
143-
@page :left {
144-
margin: 15mm 20mm 15mm 10mm;
145-
}
146-
147-
@page :right {
148-
margin: 15mm 10mm 15mm 20mm;
149-
}
150-
151-
p, h2, h3 {
152-
orphans: 3; widows: 3;
153-
}
154-
155-
h2, h3 {
156-
page-break-after: avoid;
157-
}
158-
}
159-
</style>
16017

16118

16219

20+
<link href="data:text/css,body%20%7B%0A%20%20background%2Dcolor%3A%20%23fff%3B%0A%20%20margin%3A%201em%20auto%3B%0A%20%20max%2Dwidth%3A%20700px%3B%0A%20%20overflow%3A%20visible%3B%0A%20%20padding%2Dleft%3A%202em%3B%0A%20%20padding%2Dright%3A%202em%3B%0A%20%20font%2Dfamily%3A%20%22Open%20Sans%22%2C%20%22Helvetica%20Neue%22%2C%20Helvetica%2C%20Arial%2C%20sans%2Dserif%3B%0A%20%20font%2Dsize%3A%2014px%3B%0A%20%20line%2Dheight%3A%201%2E35%3B%0A%7D%0A%0A%23header%20%7B%0A%20%20text%2Dalign%3A%20center%3B%0A%7D%0A%0A%23TOC%20%7B%0A%20%20clear%3A%20both%3B%0A%20%20margin%3A%200%200%2010px%2010px%3B%0A%20%20padding%3A%204px%3B%0A%20%20width%3A%20400px%3B%0A%20%20border%3A%201px%20solid%20%23CCCCCC%3B%0A%20%20border%2Dradius%3A%205px%3B%0A%0A%20%20background%2Dcolor%3A%20%23f6f6f6%3B%0A%20%20font%2Dsize%3A%2013px%3B%0A%20%20line%2Dheight%3A%201%2E3%3B%0A%7D%0A%20%20%23TOC%20%2Etoctitle%20%7B%0A%20%20%20%20font%2Dweight%3A%20bold%3B%0A%20%20%20%20font%2Dsize%3A%2015px%3B%0A%20%20%20%20margin%2Dleft%3A%205px%3B%0A%20%20%7D%0A%0A%20%20%23TOC%20ul%20%7B%0A%20%20%20%20padding%2Dleft%3A%2040px%3B%0A%20%20%20%20margin%2Dleft%3A%20%2D1%2E5em%3B%0A%20%20%20%20margin%2Dtop%3A%205px%3B%0A%20%20%20%20margin%2Dbottom%3A%205px%3B%0A%20%20%7D%0A%20%20%23TOC%20ul%20ul%20%7B%0A%20%20%20%20margin%2Dleft%3A%20%2D2em%3B%0A%20%20%7D%0A%20%20%23TOC%20li%20%7B%0A%20%20%20%20line%2Dheight%3A%2016px%3B%0A%20%20%7D%0A%0Atable%20%7B%0A%20%20margin%3A%201em%20auto%3B%0A%20%20border%2Dwidth%3A%201px%3B%0A%20%20border%2Dcolor%3A%20%23DDDDDD%3B%0A%20%20border%2Dstyle%3A%20outset%3B%0A%20%20border%2Dcollapse%3A%20collapse%3B%0A%7D%0Atable%20th%20%7B%0A%20%20border%2Dwidth%3A%202px%3B%0A%20%20padding%3A%205px%3B%0A%20%20border%2Dstyle%3A%20inset%3B%0A%7D%0Atable%20td%20%7B%0A%20%20border%2Dwidth%3A%201px%3B%0A%20%20border%2Dstyle%3A%20inset%3B%0A%20%20line%2Dheight%3A%2018px%3B%0A%20%20padding%3A%205px%205px%3B%0A%7D%0Atable%2C%20table%20th%2C%20table%20td%20%7B%0A%20%20border%2Dleft%2Dstyle%3A%20none%3B%0A%20%20border%2Dright%2Dstyle%3A%20none%3B%0A%7D%0Atable%20thead%2C%20table%20tr%2Eeven%20%7B%0A%20%20background%2Dcolor%3A%20%23f7f7f7%3B%0A%7D%0A%0Ap%20%7B%0A%20%20margin%3A%200%2E5em%200%3B%0A%7D%0A%0Ablockquote%20%7B%0A%20%20background%2Dcolor%3A%20%23f6f6f6%3B%0A%20%20padding%3A%200%2E25em%200%2E75em%3B%0A%7D%0A%0Ahr%20%7B%0A%20%20border%2Dstyle%3A%20solid%3B%0A%20%20border%3A%20none%3B%0A%20%20border%2Dtop%3A%201px%20solid%20%23777%3B%0A%20%20margin%3A%2028px%200%3B%0A%7D%0A%0Adl%20%7B%0A%20%20margin%2Dleft%3A%200%3B%0A%7D%0A%20%20dl%20dd%20%7B%0A%20%20%20%20margin%2Dbottom%3A%2013px%3B%0A%20%20%20%20margin%2Dleft%3A%2013px%3B%0A%20%20%7D%0A%20%20dl%20dt%20%7B%0A%20%20%20%20font%2Dweight%3A%20bold%3B%0A%20%20%7D%0A%0Aul%20%7B%0A%20%20margin%2Dtop%3A%200%3B%0A%7D%0A%20%20ul%20li%20%7B%0A%20%20%20%20list%2Dstyle%3A%20circle%20outside%3B%0A%20%20%7D%0A%20%20ul%20ul%20%7B%0A%20%20%20%20margin%2Dbottom%3A%200%3B%0A%20%20%7D%0A%0Apre%2C%20code%20%7B%0A%20%20background%2Dcolor%3A%20%23f7f7f7%3B%0A%20%20border%2Dradius%3A%203px%3B%0A%20%20color%3A%20%23333%3B%0A%7D%0Apre%20%7B%0A%20%20white%2Dspace%3A%20pre%2Dwrap%3B%20%20%20%20%2F%2A%20Wrap%20long%20lines%20%2A%2F%0A%20%20border%2Dradius%3A%203px%3B%0A%20%20margin%3A%205px%200px%2010px%200px%3B%0A%20%20padding%3A%2010px%3B%0A%7D%0Apre%3Anot%28%5Bclass%5D%29%20%7B%0A%20%20background%2Dcolor%3A%20%23f7f7f7%3B%0A%7D%0A%0Acode%20%7B%0A%20%20font%2Dfamily%3A%20Consolas%2C%20Monaco%2C%20%27Courier%20New%27%2C%20monospace%3B%0A%20%20font%2Dsize%3A%2085%25%3B%0A%7D%0Ap%20%3E%20code%2C%20li%20%3E%20code%20%7B%0A%20%20padding%3A%202px%200px%3B%0A%7D%0A%0Adiv%2Efigure%20%7B%0A%20%20text%2Dalign%3A%20center%3B%0A%7D%0Aimg%20%7B%0A%20%20background%2Dcolor%3A%20%23FFFFFF%3B%0A%20%20padding%3A%202px%3B%0A%20%20border%3A%201px%20solid%20%23DDDDDD%3B%0A%20%20border%2Dradius%3A%203px%3B%0A%20%20border%3A%201px%20solid%20%23CCCCCC%3B%0A%20%20margin%3A%200%205px%3B%0A%7D%0A%0Ah1%20%7B%0A%20%20margin%2Dtop%3A%200%3B%0A%20%20font%2Dsize%3A%2035px%3B%0A%20%20line%2Dheight%3A%2040px%3B%0A%7D%0A%0Ah2%20%7B%0A%20%20border%2Dbottom%3A%204px%20solid%20%23f7f7f7%3B%0A%20%20padding%2Dtop%3A%2010px%3B%0A%20%20padding%2Dbottom%3A%202px%3B%0A%20%20font%2Dsize%3A%20145%25%3B%0A%7D%0A%0Ah3%20%7B%0A%20%20border%2Dbottom%3A%202px%20solid%20%23f7f7f7%3B%0A%20%20padding%2Dtop%3A%2010px%3B%0A%20%20font%2Dsize%3A%20120%25%3B%0A%7D%0A%0Ah4%20%7B%0A%20%20border%2Dbottom%3A%201px%20solid%20%23f7f7f7%3B%0A%20%20margin%2Dleft%3A%208px%3B%0A%20%20font%2Dsize%3A%20105%25%3B%0A%7D%0A%0Ah5%2C%20h6%20%7B%0A%20%20border%2Dbottom%3A%201px%20solid%20%23ccc%3B%0A%20%20font%2Dsize%3A%20105%25%3B%0A%7D%0A%0Aa%20%7B%0A%20%20color%3A%20%230033dd%3B%0A%20%20text%2Ddecoration%3A%20none%3B%0A%7D%0A%20%20a%3Ahover%20%7B%0A%20%20%20%20color%3A%20%236666ff%3B%20%7D%0A%20%20a%3Avisited%20%7B%0A%20%20%20%20color%3A%20%23800080%3B%20%7D%0A%20%20a%3Avisited%3Ahover%20%7B%0A%20%20%20%20color%3A%20%23BB00BB%3B%20%7D%0A%20%20a%5Bhref%5E%3D%22http%3A%22%5D%20%7B%0A%20%20%20%20text%2Ddecoration%3A%20underline%3B%20%7D%0A%20%20a%5Bhref%5E%3D%22https%3A%22%5D%20%7B%0A%20%20%20%20text%2Ddecoration%3A%20underline%3B%20%7D%0A%0A%2F%2A%20Class%20described%20in%20https%3A%2F%2Fbenjeffrey%2Ecom%2Fposts%2Fpandoc%2Dsyntax%2Dhighlighting%2Dcss%0A%20%20%20Colours%20from%20https%3A%2F%2Fgist%2Egithub%2Ecom%2Frobsimmons%2F1172277%20%2A%2F%0A%0Acode%20%3E%20span%2Ekw%20%7B%20color%3A%20%23555%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%2F%2A%20Keyword%20%2A%2F%0Acode%20%3E%20span%2Edt%20%7B%20color%3A%20%23902000%3B%20%7D%20%2F%2A%20DataType%20%2A%2F%0Acode%20%3E%20span%2Edv%20%7B%20color%3A%20%2340a070%3B%20%7D%20%2F%2A%20DecVal%20%28decimal%20values%29%20%2A%2F%0Acode%20%3E%20span%2Ebn%20%7B%20color%3A%20%23d14%3B%20%7D%20%2F%2A%20BaseN%20%2A%2F%0Acode%20%3E%20span%2Efl%20%7B%20color%3A%20%23d14%3B%20%7D%20%2F%2A%20Float%20%2A%2F%0Acode%20%3E%20span%2Ech%20%7B%20color%3A%20%23d14%3B%20%7D%20%2F%2A%20Char%20%2A%2F%0Acode%20%3E%20span%2Est%20%7B%20color%3A%20%23d14%3B%20%7D%20%2F%2A%20String%20%2A%2F%0Acode%20%3E%20span%2Eco%20%7B%20color%3A%20%23888888%3B%20font%2Dstyle%3A%20italic%3B%20%7D%20%2F%2A%20Comment%20%2A%2F%0Acode%20%3E%20span%2Eot%20%7B%20color%3A%20%23007020%3B%20%7D%20%2F%2A%20OtherToken%20%2A%2F%0Acode%20%3E%20span%2Eal%20%7B%20color%3A%20%23ff0000%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%2F%2A%20AlertToken%20%2A%2F%0Acode%20%3E%20span%2Efu%20%7B%20color%3A%20%23900%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%2F%2A%20Function%20calls%20%2A%2F%20%0Acode%20%3E%20span%2Eer%20%7B%20color%3A%20%23a61717%3B%20background%2Dcolor%3A%20%23e3d2d2%3B%20%7D%20%2F%2A%20ErrorTok%20%2A%2F%0A%0A" rel="stylesheet" type="text/css" />
21+
16322
</head>
16423

16524
<body>
166-
<!--
167-
%\VignetteEngine{knitr::knitr}
168-
%\VignetteIndexEntry{Getting started with Roxygen2}
169-
-->
17025

171-
<h1>Introduction to roxygen2</h1>
17226

173-
<p>Documentation is one of the most important aspects of good code. Without it, users won&#39;t know how to use your package, and are unlikely to do so. Documentation is also useful for you in the future (so you remember what the heck you were thinking!), and for other developers working on your package. The goal of roxygen2 is to make documenting your code as easy as possible. R provides a standard way of documenting packages: you write <code>.Rd</code> files in the <code>man/</code> directory. These files use a custom syntax, loosely based on latex. Roxygen2 provides a number of advantages over writing <code>.Rd</code> files by hand:</p>
17427

28+
<div id="header">
29+
<h1 class="title">Introduction to roxygen2</h1>
30+
<h4 class="author"><em>Hadley Wickham</em></h4>
31+
<h4 class="date"><em>2015-10-28</em></h4>
32+
</div>
33+
34+
35+
<p>Documentation is one of the most important aspects of good code. Without it, users won’t know how to use your package, and are unlikely to do so. Documentation is also useful for you in the future (so you remember what the heck you were thinking!), and for other developers working on your package. The goal of roxygen2 is to make documenting your code as easy as possible. R provides a standard way of documenting packages: you write <code>.Rd</code> files in the <code>man/</code> directory. These files use a custom syntax, loosely based on latex. Roxygen2 provides a number of advantages over writing <code>.Rd</code> files by hand:</p>
17536
<ul>
176-
<li><p>Code and documentation are adjacent so when you modify your code, it&#39;s easy
177-
to remember that you need to update the documentation.</p></li>
178-
<li><p>Roxygen2 dynamically inspects the objects that it&#39;s documenting, so it
179-
can automatically add data that you&#39;d otherwise have to write by hand.</p></li>
180-
<li><p>It abstracts over the differences in documenting S3 and S4 methods,
181-
generics and classes so you need to learn fewer details.</p></li>
37+
<li><p>Code and documentation are adjacent so when you modify your code, it’s easy to remember that you need to update the documentation.</p></li>
38+
<li><p>Roxygen2 dynamically inspects the objects that it’s documenting, so it can automatically add data that you’d otherwise have to write by hand.</p></li>
39+
<li><p>It abstracts over the differences in documenting S3 and S4 methods, generics and classes so you need to learn fewer details.</p></li>
18240
</ul>
183-
18441
<p>As well as generating <code>.Rd</code> files, roxygen will also create a <code>NAMESPACE</code> for you, and will manage the <code>Collate</code> field in <code>DESCRIPTION</code>.</p>
185-
18642
<p>This vignette provides a high-level description of roxygen2 and how the three main components work. The other vignettes provide more detail on the individual components:</p>
187-
18843
<ul>
189-
<li><p><a href="rd.html">Generating .Rd files</a> and <a href="formatting.html">text formatting</a>
190-
describe how to generate function documentation via <code>.Rd</code> files</p></li>
191-
<li><p><a href="namespace.html">Managing your <code>NAMESPACE</code></a> describes how to generate
192-
a <code>NAMESPACE</code> file, how namespacing works in R, and how you can use Roxygen2 to be
193-
specific about what your package needs and supplies.</p></li>
194-
<li><p><a href="collate.html">Controlling collation order</a> describes how roxygen2
195-
controls file loading order if you need to make sure one file is
196-
loaded before another.</p></li>
44+
<li><p><a href="rd.html">Generating .Rd files</a> and <a href="formatting.html">text formatting</a> describe how to generate function documentation via <code>.Rd</code> files</p></li>
45+
<li><p><a href="namespace.html">Managing your <code>NAMESPACE</code></a> describes how to generate a <code>NAMESPACE</code> file, how namespacing works in R, and how you can use Roxygen2 to be specific about what your package needs and supplies.</p></li>
46+
<li><p><a href="collate.html">Controlling collation order</a> describes how roxygen2 controls file loading order if you need to make sure one file is loaded before another.</p></li>
19747
</ul>
198-
48+
<div id="running-roxygen" class="section level1">
19949
<h1>Running roxygen</h1>
200-
20150
<p>There are three main ways to run roxygen:</p>
202-
20351
<ul>
20452
<li><p><code>roxygen2::roxygenise()</code>, or</p></li>
205-
<li><p><code>devtools::document()</code>, if you&#39;re using devtools, or</p></li>
206-
<li><p><code>Ctrl + Shift + D</code>, if you&#39;re using RStudio.</p></li>
53+
<li><p><code>devtools::document()</code>, if youre using devtools, or</p></li>
54+
<li><p><code>Ctrl + Shift + D</code>, if youre using RStudio.</p></li>
20755
</ul>
56+
<p>As of version 4.0.0, roxygen2 will never overwrite a file it didn’t create. It does this by labelling every file it creates with a comment: “Generated by roxygen2 (version): do not edit by hand”.</p>
57+
</div>
20858

209-
<p>As of version 4.0.0, roxygen2 will never overwrite a file it didn&#39;t create. It does this by labelling every file it creates with a comment: &ldquo;Generated by roxygen2 (version): do not edit by hand&rdquo;.</p>
21059

211-
</body>
21260

61+
<!-- dynamically load mathjax for compatibility with self-contained -->
62+
<script>
63+
(function () {
64+
var script = document.createElement("script");
65+
script.type = "text/javascript";
66+
script.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
67+
document.getElementsByTagName("head")[0].appendChild(script);
68+
})();
69+
</script>
70+
71+
</body>
21372
</html>

0 commit comments

Comments
 (0)