@@ -8,7 +8,9 @@ check_mat <- function(mat) {
88validate_rbm <- function (x ) {
99 valid_rbm <- c(" none" , " explicit" , " implicit" )
1010
11- if (length(x ) == 0 ) x <- " none"
11+ if (length(x ) == 0 ) {
12+ x <- " none"
13+ }
1214 x [is.na(x )] <- " none"
1315 x [isFALSE(as.logical(x ))] <- " none"
1416
@@ -21,10 +23,10 @@ validate_rbm <- function(x) {
2123get_lav_stuff <- function (fit ) {
2224 # Utility function to extract lavaan stuff
2325 list (
24- lavmodel = fit @ Model ,
26+ lavmodel = fit @ Model ,
2527 lavsamplestats = fit @ SampleStats ,
26- lavdata = fit @ Data ,
27- lavoptions = fit @ Options
28+ lavdata = fit @ Data ,
29+ lavoptions = fit @ Options
2830 )
2931}
3032
@@ -86,8 +88,9 @@ is_iRBMp <- function(x, quietly = FALSE) {
8688 )
8789 plugin_pen <- plugin_pen(call = TRUE )
8890
89- if (isFALSE(quietly ))
91+ if (isFALSE(quietly )) {
9092 cli :: cli_alert_info(" is_iRBMp: RBM = {rbm}, Plugin penalty = {plugin_pen}" )
93+ }
9194
9295 attr(out , " plugin_pen" ) <- plugin_pen
9396 out
@@ -122,7 +125,7 @@ get_Sigma <- function(x, lavobject) {
122125#
123126# # Expected information
124127# information_expected <- function(
125- # theta,
128+ # theta,
126129# lavmodel,
127130# lavsamplestats,
128131# lavdata,
@@ -140,7 +143,7 @@ get_Sigma <- function(x, lavobject) {
140143#
141144# # Outer product of casewise scores
142145# information_firstorder <- function(
143- # theta,
146+ # theta,
144147# lavmodel,
145148# lavsamplestats,
146149# lavdata,
@@ -158,10 +161,10 @@ get_Sigma <- function(x, lavobject) {
158161
159162# Unexported lavaan functions
160163lavaan___.internal_get_IB.inv <-
161- utils :: getFromNamespace(" .internal_get_IB.inv " , " lavaan" )
164+ utils :: getFromNamespace(" lav_lisrel_ibinv " , " lavaan" )
162165lavaan___computeDelta <-
163- utils :: getFromNamespace(" computeDelta " , " lavaan" )
166+ utils :: getFromNamespace(" lav_model_delta " , " lavaan" )
164167lavaan___derivative.mu.LISREL <-
165- utils :: getFromNamespace(" derivative.mu.LISREL " , " lavaan" )
168+ utils :: getFromNamespace(" lav_lisrel_dmu_dx " , " lavaan" )
166169lavaan___lav_model_vcov <-
167170 utils :: getFromNamespace(" lav_model_vcov" , " lavaan" )
0 commit comments