-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solves "Error in eval(predvars, data, env) : object 'hgt_z_0' not fou…
…nd". Added test code and dependency to chartplotter 0.32.0, resolved issue #23
- Loading branch information
1 parent
f7b3402
commit 6fa49ab
Showing
3 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# curvematching problem | ||
# Error in eval(predvars, data, env) : object 'hgt_z_0' not found | ||
|
||
|
||
# the following code gave: Error in eval(predvars, data, env) : object 'hgt_z_0' not found | ||
# chartplotter 0.32.0 resolved this error | ||
library(jamesclient) | ||
fn <- path.expand("~/Package/james/notes/Voorbeelddossier.txt") | ||
js <- read_json_js(fn) | ||
test_that("Matches do not condition on yname when there are no brokenstick estimates", { | ||
expect_silent(james::draw_chart( | ||
txt = js, chartcode = c(""), | ||
selector = c("derive"), chartgrp = c("preterm"), agegrp = c("0-15m"), | ||
sex = c("female"), etn = c("nl"), ga = 27L, side = c("hgt"), | ||
curve_interpolation = TRUE, quiet = TRUE, dnr = c("0-2"), | ||
lo = "4w", hi = c("14m"), nmatch = 10L, exact_sex = TRUE, | ||
exact_ga = FALSE, show_future = FALSE, show_realized = FALSE, | ||
draw_grob = FALSE)) | ||
}) |