~enricoschumann/neighbours

085dbf904660b3c20672d4ae3b67f4daa7c7fcc3 — Enrico Schumann 2 years ago 83f3ee5 + efb02a5
Merge branch 'master' of git.sr.ht:~enricoschumann/neighbours
1 files changed, 2 insertions(+), 1 deletions(-)

M vignettes/neighbours.Rnw
M vignettes/neighbours.Rnw => vignettes/neighbours.Rnw +2 -1
@@ 320,7 320,8 @@ sol.ls <- LSopt(variance,
                     printBar = FALSE),
                S = S)

sol.qp <- if (requireNamespace("NMOF"))
sol.qp <- if (requireNamespace("NMOF") &&
              requireNamespace("quadprog"))
              round(NMOF::minvar(S, wmin = 0, wmax = 0.2), 2) else NA
data.frame(LS = round(sol.ls$xbest, 2)[1:10],
           QP = sol.qp[1:10])