Skip to content

Commit 63b405d

Browse files
committed
Fixed testthat test skipping.
Former-commit-id: b10a22b
1 parent 3de5488 commit 63b405d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Encoding: UTF-8
22
Type: Package
33
Package: mixsqp
4-
Version: 0.2-1
4+
Version: 0.2-2
55
Date: 2019-10-15
66
Title: Sequential Quadratic Programming for Fast Maximum-Likelihood
77
Estimation of Mixture Proportions

R/mixsqp.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ mixsqp <- function (L, w = rep(1,nrow(L)), x0 = rep(1,ncol(L)),
382382

383383
# Print a brief summary of the analysis, if requested.
384384
if (verbose) {
385-
cat(sprintf("Running mix-SQP algorithm 0.2-1 on %d x %d matrix\n",n,m))
385+
cat(sprintf("Running mix-SQP algorithm 0.2-2 on %d x %d matrix\n",n,m))
386386
cat(sprintf("convergence tol. (SQP): %0.1e\n",convtol.sqp))
387387
cat(sprintf("conv. tol. (active-set): %0.1e\n",convtol.activeset))
388388
cat(sprintf("zero threshold (solution): %0.1e\n",zero.threshold.solution))

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ in the shell:
140140

141141
```bash
142142
R CMD build mixsqp
143-
R CMD INSTALL mixsqp_0.2-1.tar.gz
144-
R CMD check --as-cran mixsqp_0.2-1.tar.gz
143+
R CMD INSTALL mixsqp_0.2-2.tar.gz
144+
R CMD check --as-cran mixsqp_0.2-2.tar.gz
145145
```
146146

147147
Note that these commands require that the dependencies have already

tests/testthat/test_mixsqp.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ context("mixsqp")
44
# is used for some of the tests to check whether the correct Rmosek
55
# package (the one downloaded from mosek.com) is installed.
66
skip_if_mixkwdual_doesnt_work <- function() {
7-
testthat::skip_if_not_installed("REBayes")
8-
testthat::skip_if_not_installed("Rmosek")
9-
testthat::skip_if(!is.element("mosek",getNamespaceExports("Rmosek")))
7+
skip_if_not_installed("REBayes")
8+
skip_if_not_installed("Rmosek")
9+
skip_if(!is.element("mosek_lptoprob",getNamespaceExports("Rmosek")))
1010
}
1111

1212
test_that("Version number in mixsqp with verbose = TRUE is correct",{

0 commit comments

Comments
 (0)