You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
# Package v0.4.5
2
+
## Extra arugment checks
3
+
* There are now additional checks for the function arguments related to the fit statistics (ACO, SA) and the fit statistic tests (ACO) with informative warnings for when the function arguments are not valid.
4
+
1
5
# Package v0.4.2
2
6
## Introduction of Function Classes
3
7
* This version introduces classes to each of the main function outputs (`antcolony.lavaan` == "antcolony", `simulatedAnnealing` == "simulatedAnnealing", `tabuShortForm` == "tabu")
paste0("The following elements of fit.indices or fitStatistics are not valid fit measures provided by the lavaan::fitmeasures function:\n\n",
270
+
paste(invalidMeasures, collapse="\n"),
271
+
"\n\nPlease check the output of this function for proper spelling and capitalization of the fit measure(s) you are interested in.")
272
+
stop(errorMessage)
273
+
}
274
+
275
+
}
276
+
277
+
fitStatTestCheck<-
278
+
function(measures, test) {
279
+
tempEnv<-
280
+
new.env()
281
+
mapply(
282
+
assign,
283
+
measures,
284
+
0,
285
+
MoreArgs=list(envir=tempEnv))
286
+
287
+
checkIfEval<-
288
+
tryCatch(
289
+
expr= eval(parse(text=test),
290
+
envir=tempEnv),
291
+
error=function(e) {
292
+
stop("There was a problem with the fit.statistics.test provided. It cannot be evaluated properly. Please read the function documentation to see how to properly specify a test.")
293
+
}
294
+
)
295
+
296
+
if (!is.character(test)) {
297
+
stop("There is a problem with the fit.statistics.test provided. The fit.statistics.test was given as a logical, not a character. Please read the function documentation to see how to properly specify a test. ")
Copy file name to clipboardExpand all lines: cran-comments.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
## Resubmission
2
-
This is a resubmission. In this version I have fixed a bug that caused the lavaan-based functions to improperly use the initial model syntax instead of building the intermediate model syntax when the initial model syntax was specified in an untested manner.
2
+
This is a resubmission. In this version I have included three checks to function arguments that will give informative errors if the user misspecifies the arguments.
0 commit comments