audrey-b / sims

An R package to simulate data from JAGS or R Code
https://poissonconsulting.github.io/sims/
Other
1 stars 2 forks source link

tests fail on appveyor but all OK or skipped! #5

Closed joethorley closed 4 years ago

joethorley commented 5 years ago

it's failing with the following error what is bizarre is that there doesn't seem to be any warnings or failures on appveyor (which uses windows)

* checking tests ... ERROR
  Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(bayesims)
  > 
  > test_check("bayesims")
  == testthat results  ===========================================================
  OK: 16 SKIPPED: 0 WARNINGS: 0 FAILED: 0
  > 
  > proc.time()
     user  system elapsed 
     0.82    0.12    0.95 
* DONE
Status: 1 ERROR
joethorley commented 5 years ago

@audrey-b - can you pull the latest version and Check Package on your windows machine and let me know what you get?

audrey-b commented 5 years ago

I had an error message because nlist was not installed. So I installed with remotes::install_github("poissonconsulting/nlist") and now it passes all the checks.

joethorley commented 5 years ago

Thanks - I'm at a loss on how to fix appveyor - I think its something to do with jags installing - I turned off updating so we don't keep getting messages that its broken

joethorley commented 5 years ago

see if JAGS version responsible

joethorley commented 5 years ago

with jags 4.2.0

* checking for unstated dependencies in 'tests' ... OK
* checking tests ... ERROR
  Running 'testthat.R' [19s]
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:

  Attaching package: 'purrr'

  The following object is masked from 'package:testthat':

      is_null

  > 
  > test_check("sims")
  == testthat results  ===========================================================
  [ OK: 205 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 0 ]
  > 
  > proc.time()
     user  system elapsed 
     7.64    0.60   18.18 
* checking for detritus in the temp directory ... OK
* DONE
Status: 1 ERROR
joethorley commented 5 years ago

with jags 4.3.0

* checking tests ... ERROR
  Running 'testthat.R' [16s]
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:

  Attaching package: 'purrr'

  The following object is masked from 'package:testthat':

      is_null

  > 
  > test_check("sims")
  == testthat results  ===========================================================
  [ OK: 205 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 0 ]
  > 
  > proc.time()
     user  system elapsed 
     6.21    0.51   15.29 
joethorley commented 4 years ago

Can't test using check_win_release() as chk and nlist not on CRAN

joethorley commented 4 years ago

Perhaps use tic approach?

joethorley commented 4 years ago

switched to GitHub actions