Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures in the current version of OpenSDPsynthR #38

Open
jsonbecker opened this issue May 20, 2017 · 0 comments
Open

Test failures in the current version of OpenSDPsynthR #38

jsonbecker opened this issue May 20, 2017 · 0 comments

Comments

@jsonbecker
Copy link
Contributor

==> devtools::test()

Loading OpenSDPsynthR
Loading required package: testthat
Loading required package: dplyr

Attaching package: ‘dplyr’

The following object is masked from ‘package:testthat’:

    matches

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

Loading required package: lme4
Loading required package: Matrix
Testing OpenSDPsynthR
Test age calculator: ................................
Test expand_grid_df: ...............
Test baseline extraction: .......
Test assigning baseline values: W..........................
Test conditional probability: .W.............
Test high level data generation functions: 12.
Test CEDS variable mapping: .................................
Test Markov Generator: ...............

Warnings -----------------------------------------------------------------------
1. Baseline returns the proper object type (@test-baseline.R#30) - joining character vector and factor, coercing into character vector

2. warnings but functioning (@test-baseline.R#129) - Probability list elements not found in data.
Missing levels: 
white,
other,
hawaiian_pi

Failed -------------------------------------------------------------------------
1. Error: gen_students produces students (@test-gen.R#7) -----------------------
unused argument (seed = 21421)
1: .handleSimpleError(function (e) 
   {
       e$call <- sys.calls()[(frame + 11):(sys.nframe() - 2)]
       register_expectation(e, frame + 11, sys.nframe() - 2)
       signalCondition(e)
   }, "unused argument (seed = 21421)", quote(gen_students(n = 10, seed = 21421))) at /Users/jason/code/OpenSDPsynthR/tests/testthat/test-gen.R:7
2: eval(code, test_env)

2. Error: gen_student_years longitudinal data (@test-gen.R#27) -----------------
unused argument (seed = 2352)
1: .handleSimpleError(function (e) 
   {
       e$call <- sys.calls()[(frame + 11):(sys.nframe() - 2)]
       register_expectation(e, frame + 11, sys.nframe() - 2)
       signalCondition(e)
   }, "unused argument (seed = 2352)", quote(gen_students(n = 100, seed = 2352))) at /Users/jason/code/OpenSDPsynthR/tests/testthat/test-gen.R:27
2: eval(code, test_env)

DONE ===========================================================================
Warning message:
In left_join_impl(x, y, by$x, by$y, suffix$x, suffix$y) :
  joining character vector and factor, coercing into character vector

I have a feeling at least some of these are related to #16, but the warnings may be related to having stringsAsFactors = FALSE in an .Rprofile or similar (which I do not do).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant