-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathexample-review-index.Rmd
282 lines (176 loc) · 6.59 KB
/
example-review-index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
---
output:
html_notebook:
toc: true
toc_float: true
editor_options:
chunk_output_type: inline
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
library(magrittr)
```
# `rdflib` - package review
## **Reviewer:** [\@annakrystalli](https://github.com/annakrystalli)
### Review Submitted:
**`r cat(sprintf("**Last updated:** %s", Sys.Date()))`**
***
<br>
This report contains documents the review of **rOpenSci** submitted package:
### **`rdflib`: ropensci/onboarding** issue [\#169](https://github.com/ropensci/onboarding/issues/169).
<br>
## Package info
**Description:**
The Resource Description Framework, or 'RDF' is a widely used
data representation model that forms the cornerstone of the
Semantic Web. 'RDF' represents data as a graph rather than
the familiar data table or rectangle of relational databases.
The 'rdflib' package provides a friendly and concise user interface
for performing common tasks on 'RDF' data, such as reading, writing
and converting between the various serializations of 'RDF' data,
including 'rdfxml', 'turtle', 'nquads', 'ntriples', and 'json-ld';
creating new 'RDF' graphs, and performing graph queries using 'SPARQL'.
This package wraps the low level 'redland' R package which
provides direct bindings to the 'redland' C library. Additionally,
the package supports the newer and more developer friendly
'JSON-LD' format through the 'jsonld' package. The package
interface takes inspiration from the Python 'rdflib' library.
**Author:** `r person("Carl", "Boettiger",
email = "cboettig@gmail.com",
role = c("aut", "cre", "cph"),
comment=c(ORCID = "0000-0002-1642-628X"))`
**repo url:** <https://github.com/cboettig/rdflib>
**website url:** <https://cboettig.github.io/rdflib/>
## Review info
#### See [reviewer guidelines](https://github.com/ropensci/onboarding/blob/master/reviewing_guide.md) for further information on the rOpenSci review process.
**key review checks:**
- Does the code comply with **general principles in the [Mozilla reviewing guide](https://mozillascience.github.io/codeReview/review.html)**?
- Does the package **comply with the [ROpenSci packaging guide](https://github.com/ropensci/onboarding/blob/master/packaging_guide.md)**?
- Are there **improvements** that could be made to the **code style?**
- Is there **code duplication** in the package that should be reduced?
- Are there **user interface improvements** that could be made?
- Are there **performance improvements** that could be made?
- Is the **documentation** (installation instructions/vignettes/examples/demos) **clear and sufficient**?
Please be respectful and kind to the authors in your reviews. The rOpenSci [code of conduct](https://github.com/ropensci/onboarding/blob/master/policies.md/#code-of-conduct) is mandatory for everyone involved in our review process.
***
### session info
```{r sessionInfo}
sessionInfo()
```
```{r pkg_dir, echo = F}
pkg_dir <- "/private/var/folders/8p/87cqdx2s34vfvcgh04l6z72w0000gn/T/Rtmp4i9nQx/rdflib-review/../rdflib"
```
## Test installation
### test local `rdflib` install:
```{r test-local}
install(pkg_dir, dependencies = T, build_vignettes = T)
```
```{r github-rm}
remove.packages("rdflib")
```
#### **comments:**
<!-- record comments on local install here -->
***
### test install of `rdflib` from GitHub with:
```{r test-github}
devtools::install_github("cboettig/rdflib", dependencies = T, build_vignettes = T)
```
#### **comments:**
<!-- record comments on github install here -->
***
## Check package integrity
### run checks on `rdflib` source:
```{r check-checks}
devtools::check(pkg_dir)
```
#### **comments:**
<!-- record comments on checks here -->
***
### run tests on `rdflib` source:
```{r check-tests}
devtools::test(pkg_dir)
```
#### **comments:**
<!-- record comments on tests here -->
***
### check `rdflib` for goodpractice:
```{r test-goodpractice}
goodpractice::gp(pkg_dir)
```
#### **comments:**
<!-- record comments on goodpractice here -->
***
## Check package metadata files
### inspect
- #### [README](https://github.com/cboettig/rdflib)
- #### [DESCRIPTION](https://github.com/cboettig/rdflib/blob/master/DESCRIPTION)
- #### [NAMESPACE](https://github.com/cboettig/rdflib/blob/master/NAMESPACE)
### spell check
```{r spell-check}
devtools::spell_check(pkg_dir)
```
#### **comments:**
<!-- record comments on metadata files here -->
***
## Check documentation
online documentation: **<https://cboettig.github.io/rdflib/>**
* Is the documentation (installation instructions/vignettes/examples/demos) clear and sufficient?
### test `rdflib` function help files:
```{r test-help}
help(package = "rdflib")
```
#### **comments:**
<!-- record comments on help files here -->
***
### test `rdflib` vignettes:
```{r test-vignettes}
vignette(package = "rdflib")
```
#### **comments:**
<!-- record comments on vignettes here -->
***
## Test functionality:
- Are there **user interface improvements** that could be made?
- Are there **performance improvements** that could be made?
```{r free-style}
library("rdflib")
```
```{r parse-functions}
exports <-ls("package:rdflib")
exports
```
<!-- experiment with package functions -->
```{r exp-chunk}
```
#### **comments:**
<!-- record comments on rdflib experimentation here -->
***
## Inspect code:
- Does the package **comply with the [ROpenSci packaging guide](https://github.com/ropensci/onboarding/blob/master/packaging_guide.md)**?
* good [function & variable naming?](https://github.com/ropensci/onboarding/blob/master/packaging_guide.md#funvar)
* good [dependency management](https://github.com/ropensci/onboarding/blob/master/packaging_guide.md#deps)?
- Are there **improvements** that could be made to the **code style?**
- Is there **code duplication** in the package that should be reduced?
```{r inspect-code}
pkgreviewr::pkgreview_print_source("rdflib")
```
**\* might not be suitable for large packages with many exported functions**
<br>
<br>
#### **comments:**
<!-- record comments on rdflib source code here -->
## Review test suite:
### test coverage
```{r pkg_coverage}
covr::package_coverage(pkg_dir)
```
### inspect [tests](https://github.com/cboettig/rdflib/blob/master/tests/testthat)
#### **comments:**
<!-- record comments on testing suite here -->
***