Running examples in ‘qmethod-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: qmb.plot
> ### Title: Q Methodology: Plot of bootstrap results
> ### Aliases: qmb.plot
> ### Keywords: Q methodology bootstrapping plot
> 
> ### ** Examples
> 
> data(lipset)
> boots <- qmboots(lipset[[1]], nfactors = 3, nsteps = 50,
+                 load = "auto", rotation = "varimax", 
+                 indet = "qindet", fsi = TRUE)
[1] Number of requested iterations: 50
Q-method analysis.
Finished on:             Thu May 17 20:25:16 2018
Original data:           33 statements, 9 Q-sorts
Forced distribution:     TRUE
Number of factors:       3
Rotation:                varimax
Flagging:                automatic
Correlation coefficient: pearson
In factor.stats, the correlation matrix is singular, an approximation is used
Warning in fa.stats(r = r, f = f, phi = phi, n.obs = n.obs, np.obs = np.obs,  :
  In factor.stats, the correlation matrix is singular, and we could not calculate the beta weights for factor score estimates
[1] Finished iteration number 1
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 2
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 3
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 4
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 5
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 6
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 7
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 8
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 9
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 10
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 11
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 12
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 13
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 14
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 15
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 16
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 17
[1] Finished iteration number 18
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 19
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 20
In factor.stats, the correlation matrix is singular, an approximation is used
Warning in fa.stats(r = r, f = f, phi = phi, n.obs = n.obs, np.obs = np.obs,  :
  In factor.stats, the correlation matrix is singular, and we could not calculate the beta weights for factor score estimates
[1] Finished iteration number 21
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 22
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 23
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 24
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 25
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 26
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 27
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 28
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 29
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 30
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 31
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 32
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 33
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 34
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 35
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 36
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 37
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 38
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 39
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 40
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 41
In factor.stats, the correlation matrix is singular, an approximation is used
[1] Finished iteration number 42
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 43
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 44
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 45
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 46
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 47
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 48
In factor.stats, the correlation matrix is singular, an approximation is used
[1] Finished iteration number 49
Warning in cor.smooth(r) :
  Matrix was not positive definite, smoothing was done
[1] Finished iteration number 50
-----------------------------------------------
Bootstrap of 50 steps
Call: qmboots(nfactors=3, nstat=33, nqsorts=9, nsteps=50, load=auto, rotation=varimax, indet=qindet, fsi=TRUE) 
-----------------------------------------------
STARTED : 2018-05-17 20:25:16 
FINISHED: 2018-05-17 20:25:19
DURATION:             0: 0: 3 hrs:min:sec
-----------------------------------------------
Alignment correction method: qindet
Number of steps that could not be reordered: 1
>                 
> boots.summary <- qmb.summary(boots)
> 
> qmb.plot(boots.summary, 3, type = "loa")
Error in if (sort == "sd") { : the condition has length > 1
Calls: qmb.plot
Execution halted