Skip to content

Commit 5695e15

Browse files
author
maechler
committed
list(...)[c(<n1>, <n2>)] is never empty
git-svn-id: https://svn.r-project.org/R/trunk@88048 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 4b0f433 commit 5695e15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/library/stats/R/factanal.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ factanal <-
107107

108108
cn <- list(nstart = 1, trace = FALSE, lower = 0.005)
109109
cn[names(control)] <- control
110-
more <- list(...)[c("nstart", "trace", "lower", "opt", "rotate")]
110+
more <- if(...length())
111+
Filter(length, # drop NULL components in
112+
list(...)[c("nstart", "trace", "lower", "opt", "rotate")])
111113
if(length(more)) cn[names(more)] <- more
112114

113115
if(is.null(start)) {

0 commit comments

Comments
 (0)