Skip to content

Commit 87fab44

Browse files
committed
fixed bug with formula evaluation
1 parent 8334353 commit 87fab44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: bayesnec
22
Title: A Bayesian No-Effect- Concentration (NEC) Algorithm
3-
Version: 2.0.2.2
3+
Version: 2.0.2.3
44
Authors@R: c(person("Rebecca", "Fisher", email = "r.fisher@aims.gov.au", role = c("aut", "cre")), person("Diego","Barneche",role="aut"), person("Gerard","Ricardo",role="aut"), person("David","Fox",role="aut"))
55
Description: Implementation of No-Effect-Concentration estimation that uses 'brms' (see Burkner (2017)<doi:10.18637/jss.v080.i01>; Burkner (2018)<doi:10.32614/RJ-2018-017>; Carpenter 'et al.' (2017)<doi:10.18637/jss.v076.i01> to fit concentration(dose)-response data using Bayesian methods for the purpose of estimating 'ECX' values, but more particularly 'NEC' (see Fox (2010)<doi:10.1016/j.ecoenv.2009.09.012>. This package expands and supersedes an original version implemented in R2jags, see Fisher, Ricardo and Fox (2020)<doi:10.5281/ZENODO.3966864>.
66
Depends:

R/bayesnecformula.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ check_formula.default <- function(formula, data, run_par_checks = FALSE) {
253253
stop("You must specify which non-linear function to use with crf.",
254254
" See ?bayesnecformula")
255255
}
256-
crf_vars <- all.vars(str2lang(x_str))
256+
crf_vars <- all.vars(str2lang(eval(parse(text = x_str))))
257257
if (length(crf_vars) != 1) {
258258
stop("The `crf` term in your formula can only have one variable; you",
259259
" specified ", paste0(crf_vars, collapse = "; "), ".")

0 commit comments

Comments
 (0)