You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- There are a few more things worth knowing though... (and many of them I learned from Hadley)
17
-
- Note that Hadley's approach to creating packages is based on some additional functionality provided by RStudio: we haven't explicity utilized that here (more later).
17
+
- Note that Hadley's approach to creating packages is based on some additional functionality provided by RStudio: we haven't explicitly utilized that here (more later).
18
18
19
19
## Aside - it's a package, not a library...
20
20
21
-
- Just a minor pont:
21
+
- Just a minor point:
22
22
- package: the thing we just made (basically a collection of functions).
23
-
- library: a place where lots of packages live (i.e., a directory in your computer's filesystem).
23
+
- library: a place where lots of packages live (i.e., a directory in your computer's file system).
24
24
25
25
## What is in our package?
26
26
- Code: the 'R' directory
27
27
- Package metadata: DESCRIPTION file
28
28
- developer info (that's you)
29
-
- includes dependency infomation (packages, R version etc)
29
+
- includes dependency information (packages, R version etc)
30
30
- version number
31
31
- Documentation: the man directory
32
32
- Objects and functions
@@ -63,7 +63,7 @@ list.files(pattern="*.gz")
63
63
64
64
## Sharing your package
65
65
66
-
- Easy to share aa version you package with others.
66
+
- Easy to share a version of your package with others.
67
67
- What happens when you change something?
68
68
- Need a system that allows users to automatically update their version of the package, without you having to rebuild it and send it to them.
69
69
- Perhaps time for some version control....
@@ -72,7 +72,7 @@ list.files(pattern="*.gz")
72
72
73
73
- Git provides the ability to track changes to the files that make up your package.
74
74
- GitHub extends this functionality be providing a centralised repository where the evolving (and stable) versions of a package can be stored, and accessed by others.
75
-
- The `devtools` packages provides an interface between R and GitHub, so that packages can be installed directly from a github repository.
75
+
- The `devtools` packages provides an interface between R and GitHub, so that packages can be installed directly from a GitHub repository.
76
76
- We've already done this with the `roxygen2` package:
-`devtools` has made package dvelopment and distribution simple
84
+
-`devtools` has made package development and distribution simple
85
85
- Previously developers had to release packages through an established repository (e.g., CRAN or Bioconductor), or host copies of the package source code that could be downloaded and installed.
86
86
- Now the same tools being used to provide centralised version control (Git and GitHub), are also being used for package distribution.
87
87
- Even if you're only developing packages for yourself, the combination of `devtools`, `roxygen2`, Git and GitHub is a powerful development platform.
<li>There are a few more things worth knowing though… (and many of them I learned from Hadley)</li>
108
-
<li>Note that Hadley's approach to creating packages is based on some additional functionality provided by RStudio: we haven't explicity utilized that here (more later).</li>
108
+
<li>Note that Hadley's approach to creating packages is based on some additional functionality provided by RStudio: we haven't explicitly utilized that here (more later).</li>
109
109
</ul>
110
110
111
111
</article></slide><slideclass=''><hgroup><h2>Aside - it's a package, not a library…</h2></hgroup><articleid="aside---its-a-package-not-a-library...">
112
112
113
113
<ul>
114
-
<li>Just a minor pont:
114
+
<li>Just a minor point:
115
115
116
116
<ul>
117
117
<li>package: the thing we just made (basically a collection of functions).</li>
118
-
<li>library: a place where lots of packages live (i.e., a directory in your computer's filesystem).</li>
118
+
<li>library: a place where lots of packages live (i.e., a directory in your computer's file system).</li>
119
119
</ul></li>
120
120
</ul>
121
121
@@ -127,7 +127,7 @@ <h2 data-config-subtitle><!-- populated from slide_config.json --></h2>
127
127
128
128
<ul>
129
129
<li>developer info (that's you)</li>
130
-
<li>includes dependency infomation (packages, R version etc)</li>
130
+
<li>includes dependency information (packages, R version etc)</li>
131
131
<li>version number</li>
132
132
</ul></li>
133
133
<li>Documentation: the man directory
@@ -187,7 +187,7 @@ <h2 data-config-subtitle><!-- populated from slide_config.json --></h2>
187
187
</article></slide><slideclass=''><hgroup><h2>Sharing your package</h2></hgroup><articleid="sharing-your-package">
188
188
189
189
<ul>
190
-
<li>Easy to share aa version you package with others.</li>
190
+
<li>Easy to share a version of your package with others.</li>
191
191
<li>What happens when you change something?</li>
192
192
<li>Need a system that allows users to automatically update their version of the package, without you having to rebuild it and send it to them.</li>
193
193
<li>Perhaps time for some version control….</li>
@@ -198,7 +198,7 @@ <h2 data-config-subtitle><!-- populated from slide_config.json --></h2>
198
198
<ul>
199
199
<li>Git provides the ability to track changes to the files that make up your package.</li>
200
200
<li>GitHub extends this functionality be providing a centralised repository where the evolving (and stable) versions of a package can be stored, and accessed by others.</li>
201
-
<li>The <code>devtools</code> packages provides an interface between R and GitHub, so that packages can be installed directly from a github repository.</li>
201
+
<li>The <code>devtools</code> packages provides an interface between R and GitHub, so that packages can be installed directly from a GitHub repository.</li>
202
202
<li>We've already done this with the <code>roxygen2</code> package:</li>
203
203
</ul>
204
204
@@ -211,14 +211,14 @@ <h2 data-config-subtitle><!-- populated from slide_config.json --></h2>
211
211
</article></slide><slideclass=''><hgroup><h2>The beauty of devtools…</h2></hgroup><articleid="the-beauty-of-devtools...">
212
212
213
213
<ul>
214
-
<li><code>devtools</code> has made package dvelopment and distribution simple
214
+
<li><code>devtools</code> has made package development and distribution simple
215
215
216
216
<ul>
217
217
<li>Previously developers had to release packages through an established repository (e.g., CRAN or Bioconductor), or host copies of the package source code that could be downloaded and installed.</li>
218
218
<li>Now the same tools being used to provide centralised version control (Git and GitHub), are also being used for package distribution.<br/></li>
219
219
</ul></li>
220
220
<li>Even if you're only developing packages for yourself, the combination of <code>devtools</code>, <code>roxygen2</code>, Git and GitHub is a powerful development platform.</li>
221
-
<li>Now you just need to impliment some testing…</li>
221
+
<li>Now you just need to implement some testing…</li>
0 commit comments