Skip to content

Commit b8a775b

Browse files
committed
Fixed check errors
1 parent 5886077 commit b8a775b

File tree

13 files changed

+53
-16
lines changed

13 files changed

+53
-16
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Imports:
2828
ctv,
2929
tidyr,
3030
scales,
31+
texor,
3132
tinytex,
3233
xfun
3334
Suggests:
@@ -40,5 +41,5 @@ Suggests:
4041
callr,
4142
ggplot2
4243
Encoding: UTF-8
43-
RoxygenNote: 7.2.3
44+
RoxygenNote: 7.3.2
4445
VignetteBuilder: knitr

NAMESPACE

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Generated by roxygen2: do not edit by hand
22

33
S3method(as.character,id)
4+
S3method(as.data.frame,status_list)
5+
S3method(c,status)
46
S3method(empty,"NULL")
57
S3method(empty,address_list)
68
S3method(empty,character)
@@ -9,6 +11,9 @@ S3method(format,address_list)
911
S3method(format,article)
1012
S3method(format,id)
1113
S3method(format,status)
14+
S3method(format,status_list)
15+
S3method(format,supplfile)
16+
S3method(format,supplfile_list)
1217
S3method(format,unparsed)
1318
S3method(print,address)
1419
S3method(print,address_list)
@@ -17,6 +22,8 @@ S3method(print,catout)
1722
S3method(print,id)
1823
S3method(print,report)
1924
S3method(print,status)
25+
S3method(print,status_list)
26+
export("%>%")
2027
export(AE)
2128
export(AEs)
2229
export(abandon_reviewer)
@@ -105,7 +112,7 @@ importFrom(dplyr,right_join)
105112
importFrom(dplyr,select)
106113
importFrom(dplyr,ungroup)
107114
importFrom(gmailr,create_draft)
108-
importFrom(gmailr,gmail_auth)
115+
importFrom(gmailr,gm_auth_configure)
109116
importFrom(gmailr,mime)
110117
importFrom(gmailr,send_draft)
111118
importFrom(googlesheets4,range_write)

R/article.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,13 @@ parse_supplementaries <- function(suppl) {
133133
xs
134134
}
135135

136+
#' @export
136137
format.supplfile_list <- function(x, ...) {
137138
suppls <- lapply(x, format)
138139
paste(suppls, collapse = ",\n ")
139140
}
140141

142+
#' @export
141143
format.supplfile <- function(x, ...) {
142144
paste0(x)
143145
}

R/email.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ as.data <- function(x) {
143143
data
144144
}
145145

146-
#' @importFrom utils read.csv
147-
#' @param by.name logical, if \code{TRUE} then names are names and
148-
#' values e-mails, otherwise names are e-mails and values names
146+
# @importFrom utils read.csv
147+
# @param by.name logical, if \code{TRUE} then names are names and
148+
# values e-mails, otherwise names are e-mails and values names
149149
editors <- function(by.name=FALSE) {
150150
cli::cli_alert_info("Reading inst/editor.csv")
151151
fname <- system.file("editors.csv", package = "rj")

R/issue.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#'
33
#' The `make_proof()` function is the first step to creating an issue. It moves
44
#' the 'proofed' articles from the `Accepted` folder and news articles from
5-
#' `News_items/{id}` into `Proofs/{id}`.
5+
#' `News_items/\{id\}` into `Proofs/\{id\}`.
66
#'
77
#' After the proof is made with this function, `publish_issue()` can be used to
88
#' publish these articles into the `rjournal.github.io` repository.

R/rj.R

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#' R Journal Package
22
#'
3-
#' @description A package to make it easier to work with the R-journal dcf files.
4-
#' @docType package
3+
#' @keywords package
54
#' @name rj
5+
"_PACKAGE"
6+
67
#' @import stringr
78
#' @import rlang
89
#' @import fs
9-
NULL
10+
#' @importFrom utils read.csv
11+
12+
#' @export
13+
dplyr::`%>%`

R/status.R

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ status <- function(status, date = Sys.Date(), comments = "") {
8181
is.status <- function(x) inherits(x, "status")
8282

8383

84+
#' @export
8485
c.status <- c.status_list <- function(..., recursive = FALSE) {
8586
pieces <- list(...)
8687
statuses <- lapply(pieces, function(x) {
@@ -187,11 +188,13 @@ status_list <- function(x = list()) {
187188
structure(x, class = "status_list")
188189
}
189190

191+
#' @export
190192
format.status_list <- function(x, ...) {
191193
statuses <- lapply(x, format)
192194
paste(statuses, collapse = ",\n ")
193195
}
194196

197+
#' @export
195198
print.status_list <- function(x, ...) {
196199
statuses <- lapply(x, format)
197200
cat(paste(statuses, collapse = "\n"))
@@ -237,9 +240,10 @@ parse_status <- function(x) {
237240
status(status = status, date = date, comments = comments)
238241
}
239242

240-
as.data.frame.status_list <- function(status_list) {
243+
#' @export
244+
as.data.frame.status_list <- function(x, ...) {
241245
message("DF")
242-
ml <- vector(mode = "list", length = length(status_list))
243-
for (i in seq(along = ml)) ml[[i]] <- as.data.frame(unclass(status_list[[i]]))
246+
ml <- vector(mode = "list", length = length(x))
247+
for (i in seq(along = ml)) ml[[i]] <- as.data.frame(unclass(x[[i]]))
244248
do.call("rbind", ml)
245249
}

man/add_reviewer.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/decline_reviewer.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/make_proof.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.

0 commit comments

Comments
 (0)