Running ‘anova.R’
  Running ‘clm.fit.R’
  Running ‘clm.formula.R’
  Running ‘clmm.R’ [10s/24s]
  Running ‘clmm.control.R’
  Running ‘clmm.formula.R’
  Running ‘confint.R’ [5s/13s]
  Running ‘nominal.test.R’ [7s/16s]
  Running ‘test-all.R’ [28s/63s]
  Running ‘test.clm.Theta.R’
  Running ‘test.clm.convergence.R’
  Running ‘test.clm.flex.link.R’
  Running ‘test.clm.model.matrix.R’
  Running ‘test.clm.predict.R’
  Running ‘test.clm.profile.R’
  Running ‘test.clm.single.anova.R’
  Running ‘test.general.R’
  Running ‘test.makeThresholds.R’
  Running ‘test.sign.R’
  Running ‘test0weights.R’ [4s/11s]
  Running ‘testAnova.clm2.R’
  Running ‘testCLM.R’ [5s/13s]
Running the tests in ‘tests/clm.formula.R’ failed.
Complete output:
  > library(ordinal)
  > ## library(devtools)
  > ## r2path <- "/Users/rhbc/Documents/Rpackages/ordinal/pkg/ordinal"
  > ## clean_dll(pkg = r2path)
  > ## load_all(r2path)
  > 
  > #################################
  > ## Appropriate evaluation of formulas:
  > 
  > ## These fail and give appropriate error messages:
  > ##  fm1 <- clm(rating ~ contact, scale=temp, data=wine)
  > ##  fm1 <- clm(rating ~ contact, scale=~Temp, data=wine)
  > ##  fm1 <- clm(rating ~ contact, scale="temp", data=wine)
  > ##  sca <- "temp"
  > ##  fm1 <- clm(rating ~ contact, scale=sca, data=wine)
  > ##  sca <- as.formula(sca)
  > ##  sca <- as.formula(temp)
  > ##  sca <- with(wine, as.formula(temp))
  > 
  > ## These all work as intended with no warnings or errors:
  > fm1 <- clm(rating ~ contact, scale="~temp", data=wine)
  Error in get_clmFormulas(mc, call.envir) : 
    unable to interpret 'formula', 'scale' or 'nominal'
  Calls: clm -> get_clmFormulas
  Execution halted
Running the tests in ‘tests/clmm.formula.R’ failed.
Complete output:
  > library(ordinal)
  > data(wine)
  > 
  > #################################
  > ## Appropriate evaluation of formulas:
  > 
  > ## These all work as intended with no warnings or errors:
  > fm1 <- clmm(rating ~ contact + (1|judge), data=wine)
  > fm1
  Cumulative Link Mixed Model fitted with the Laplace approximation
  
  formula: rating ~ contact + (1 | judge)
  data:    wine
  
   link  threshold nobs logLik AIC    niter    max.grad
   logit flexible  72   -98.80 209.59 228(686) 3.67e-06
  
  Random effects:
   Groups Name        Variance Std.Dev.
   judge  (Intercept) 0.4428   0.6654  
  Number of groups:  judge 9 
  
  Coefficients:
  contactyes 
         1.3 
  
  Thresholds:
       1|2      2|3      3|4      4|5 
  -2.28331  0.04325  1.86062  3.20298 
  > fm1 <- clmm("rating ~ contact + (1|judge)", data=wine)
  Error in clmm.formulae(formula = formula) : unable to interpret 'formula'
  Calls: clmm -> clmm.formulae
  Execution halted
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > 
  > if(require(testthat) && require(ordinal)) {
  +     test_check("ordinal")
  + }
  Loading required package: testthat
  Loading required package: ordinal
  ── 1. Error: standard formulae are interpreted correctly/give right error messag
  unable to interpret 'formula', 'scale' or 'nominal'
  1: clm(rating ~ contact, scale = "~temp", data = wine) at testthat/test-clm-formula.R:23
  2: get_clmFormulas(mc, call.envir)
  3: stop("unable to interpret 'formula', 'scale' or 'nominal'")
  
  ── 2. Error: clm may be invoked within functions (@test-clm-formula.R#149)  ────
  unable to interpret 'formula', 'scale' or 'nominal'
  1: expect_is(fun.clm(form1, data = wine), "clm") at testthat/test-clm-formula.R:149
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: fun.clm(form1, data = wine)
  5: clm(formula, data = data) at testthat/test-clm-formula.R:127
  6: get_clmFormulas(mc, call.envir)
  7: stop("unable to interpret 'formula', 'scale' or 'nominal'")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 67 SKIPPED: 0 FAILED: 2
  1. Error: standard formulae are interpreted correctly/give right error messages (@test-clm-formula.R#23) 
  2. Error: clm may be invoked within functions (@test-clm-formula.R#149) 
  
  Error: testthat unit tests failed
  Execution halted