@@ -128,17 +128,18 @@ makeJSS <- function() {
128128 result <- cleanupLatex(person $ family )
129129 if (length(person $ given ))
130130 paste(result ,
131- paste(substr(sapply(person $ given , cleanupLatex ),
132- 1 , 1 ), collapse = " " ))
131+ paste(substr(vapply(person $ given , cleanupLatex , " " ),
132+ 1L , 1L ),
133+ collapse = " " ))
133134 else result
134135 }
135136 else
136- paste(cleanupLatex(person $ given ), collapse = " " )
137+ paste(cleanupLatex(person $ given ), collapse = " " )
137138 }
138139
139140 # Format all authors for one paper
140141 authorList <- function (paper ) {
141- names <- sapply (paper $ author , shortName )
142+ names <- vapply (paper $ author , shortName , " " )
142143 if (length(names ) > 1L )
143144 result <- paste(names , collapse = " , " )
144145 else
@@ -148,7 +149,7 @@ makeJSS <- function() {
148149
149150 # Format all editors for one paper
150151 editorList <- function (paper ) {
151- names <- sapply (paper $ editor , shortName )
152+ names <- vapply (paper $ editor , shortName , " " )
152153 if (length(names ) > 1L )
153154 result <- paste(paste(names , collapse = " , " ), " (eds.)" )
154155 else if (length(names ))
0 commit comments