Skip to content

Commit d32a13c

Browse files
authored
Submit to CRAN (#31)
1 parent 16eeedc commit d32a13c

File tree

11 files changed

+82
-11
lines changed

11 files changed

+82
-11
lines changed

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
^.lintr$
22
^.pre-commit-config.yaml$
3+
^CRAN-RELEASE$
4+
^CRAN-SUBMISSION$
35
^LICENSE$
46
^README\.(Rmd|md|html)$
57
^\.github$
68
^_pkgdown\.yml$
79
^codecov\.yml$
10+
^cran-comments.md$
811
^docs$
912
^pkgdown$
1013
^readme.bib$

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ repos:
1616
- id: spell-check
1717
exclude: >
1818
(?x)^(
19+
CRAN-SUBMISSION|
1920
tests/data/.*|
2021
.*\.[rR]|
2122
.*\.feather|

CRAN-SUBMISSION

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Version: 0.1.0
2+
Date: 2023-03-07 14:07:19 UTC
3+
SHA: 72d54874e9749334942c7b474cda61e647acc60a

DESCRIPTION

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
Package: prefio
22
Title: Structures for Preference Data
33
Description: Convenient structures for creating, sourcing, reading, writing
4-
and manipulating ordinal preference data.
4+
and manipulating ordinal preference data. Methods for writing to/from PrefLib
5+
formats. See Nicholas Mattei and Toby Walsh "PrefLib: A Library of Preference
6+
Data" (2013) <doi:10.1007/978-3-642-41575-3_20>.
57
Authors@R: c(
68
person("Floyd", "Everest", email = "me@floydeverest.com",
79
role = c("aut", "cre"), comment = c(ORCID = "0000-0002-2726-6736")),
810
person("Heather", "Turner", email = "ht@heatherturner.net",
911
role = c("aut"), comment = c(ORCID = "0000-0002-1256-3375")),
1012
person("Damjan", "Vukcevic", email = "damjan@vukcevic.net",
1113
role = c("aut"), comment = c(ORCID = "0000-0001-7780-9586")))
12-
Version: 0.0.1
14+
Version: 0.1.0
1315
Depends: R (>= 2.10)
1416
LazyData: true
1517
License: GPL-3

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# **prefio** 0.1.0
2+
3+
* This is the initial release of **prefio**.

R/preflib.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@
4242
#' \emph{Proceedings of Third International Conference on Algorithmic Decision
4343
#' Theory (ADT 2013)}. Lecture Notes in Artificial Intelligence, Springer.
4444
#'
45-
#' Caragiannis, I., Chatzigeorgiou, X, Krimpas, G. A., and Voudouris, A. A.
46-
#' (2017) Optimizing positional scoring rules for rank aggregation.
47-
#' In \emph{Proceedings of the 31st AAAI Conference on Artificial Intelligence}.
48-
#'
4945
#' Bennett, J. and Lanning, S. (2007) The Netflix Prize.
5046
#' \emph{Proceedings of The KDD Cup and Workshops}.
5147
#'
@@ -314,6 +310,7 @@ read_preflib <- function(file,
314310
#' @param related_files The list of all the data files related to this one,
315311
#' comma separated. If not provided, we check for the presence of
316312
#' `attr(x, "preflib")`, and if it exists we check for `RELATED FILES`.
313+
#' @return No return value. Output will be written to file or stdout.
317314
#'
318315
#' @export
319316
write_preflib <- function(x, # nolint: cyclocomp_linter

cran-comments.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# **prefio** 0.1.0
2+
3+
This submission contains the initial release of **prefio**.
4+
5+
## Addressing comments from previous submission:
6+
7+
```
8+
If there are references describing the methods in your package, please
9+
add these in the description field of your DESCRIPTION file in the form
10+
authors (year) <doi:...>
11+
authors (year) <arXiv:...>
12+
authors (year, ISBN:...)
13+
or if those are not available: <https:...>
14+
with no space after 'doi:', 'arXiv:', 'https:' and angle brackets for
15+
auto-linking. (If you want to add a title as well please put it in
16+
quotes: "Title")
17+
```
18+
19+
I have added one `doi` link to the DESCRIPTION, but there were two references
20+
in the `.Rd` files. The other reference is for the Netflix Prize, which refers
21+
only to the data fetched in the `dontrun` example.
22+
23+
## `R CMD check` results
24+
25+
#### GitHub Actions (via `usethis::use_github_action_check_standard()`):
26+
27+
* ✅ macOS (12.6.2 21G320), R==4.2.2
28+
* ✅ Windows Server (2022 10.0.20348), R==4.2.2-win
29+
* ✅ Ubuntu (20.04.2), R==4.1.3
30+
* ✅ Ubuntu (20.04.2), R==4.2.2
31+
* ✅ Ubuntu (20.04.2), R==devel
32+
33+
`0 errors ✔ | 0 warnings ✔ | 0 notes ✔`
34+
35+
#### Other **Rhub** checks
36+
37+
```R
38+
rhub::check_for_cran()
39+
```
40+
41+
We see three notes:
42+
* One identifying this as a new submission:
43+
```
44+
N checking CRAN incoming feasibility
45+
Maintainer: 'Floyd Everest <me@floydeverest.com>'
46+
47+
New submission
48+
```
49+
* Another which is unrelated to prefio:
50+
```
51+
N checking HTML version of manual
52+
Skipping checking math rendering: package 'V8' unavailable
53+
```
54+
55+
* The last is related to an [ongoing issue](https://github.com/r-hub/rhub/issues/503) on Rhub:
56+
```
57+
N checking for detritus in the temp directory
58+
Found the following files/directories:
59+
'lastMiKTeXException'
60+
```

inst/WORDLIST

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ cre
2525
damjan
2626
Damjan
2727
dat
28+
doi
2829
dplyr
2930
eee
3031
et
@@ -49,6 +50,7 @@ Lasser
4950
LazyData
5051
lgpl
5152
licensors
53+
macOS
5254
magrittr
5355
Mattei
5456
MERCHANTABILITY
@@ -65,6 +67,7 @@ preprended
6567
px
6668
recommender
6769
relicensing
70+
Rhub
6871
Roxygen
6972
RoxygenNote
7073
soi

man/prefio-package.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/read_preflib.Rd

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)