Skip to content

Commit

Permalink
Fix CMD check NOTES
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jun 5, 2023
1 parent 625de39 commit c137226
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
8 changes: 4 additions & 4 deletions R/simplify.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ is.matrixlist <- function(x) {
&& length(x)
&& is.null(names(x))
&& all(vapply(x, is.atomic, logical(1)))
&& all.identical(vapply(x, length, integer(1)))
#&& all.identical(vapply(x, mode, character(1))) #this fails for: [ [ 1, 2 ], [ "NA", "NA" ] ]
&& all_identical(vapply(x, length, integer(1)))
#&& all_identical(vapply(x, mode, character(1))) #this fails for: [ [ 1, 2 ], [ "NA", "NA" ] ]
);
}

Expand All @@ -107,7 +107,7 @@ is.arraylist <- function(x) {
&& length(x)
&& is.null(names(x))
&& all(vapply(x, is.array, logical(1)))
&& all.identical(vapply(x, function(y){paste(dim(y), collapse="-")}, character(1)))
&& all_identical(vapply(x, function(y){paste(dim(y), collapse="-")}, character(1)))
);
}

Expand All @@ -130,7 +130,7 @@ parse_date <- function(x){
}
}

all.identical <- function(x){
all_identical <- function(x){
if(!length(x)) return(FALSE)
for(i in x){
if(x[1] != i) return(FALSE)
Expand Down
12 changes: 3 additions & 9 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
citHeader("To cite jsonlite in publications use:")

citEntry(entry = "Article",
bibentry("Article",
title = "The jsonlite Package: A Practical and Consistent Mapping Between JSON Data and R Objects",
author = personList(as.person("Jeroen Ooms")),
author = person("Jeroen", "Ooms"),
journal = "arXiv:1403.2805 [stat.CO]",
year = "2014",
url = "https://arxiv.org/abs/1403.2805",

textVersion =
paste("Jeroen Ooms (2014).",
"The jsonlite Package: A Practical and Consistent Mapping Between JSON Data and R Objects.",
"arXiv:1403.2805 [stat.CO]",
"URL https://arxiv.org/abs/1403.2805.")
url = "https://arxiv.org/abs/1403.2805"
)

0 comments on commit c137226

Please sign in to comment.