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
Updated vignettes to gracefully handle cases where OpenMx or EasyMx are not installed, preventing errors on older R versions. Added conditional checks and informative messages in the vignette code. Updated cran-comments.md to document this enhancement.
Copy file name to clipboardExpand all lines: cran-comments.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
2
2
# Description
3
3
4
-
This update includes minor enhancements and bug fixes related to how string ids are handled in various functions.
4
+
This update includes minor enhancements and bug fixes related to how string ids are handled in various functions. It also now allows certain vignettes to not throw an error if openmx is not installed for older R versions.
if (!requireNamespace("EasyMx", quietly = TRUE)) {
166
+
print("Please install EasyMx to run the model fitting examples.")
167
+
} else {
112
168
run1 <- emxTwinModel(
113
169
model = "Cholesky",
114
170
relatedness = "RCoef",
@@ -118,11 +174,15 @@ run1 <- emxTwinModel(
118
174
)
119
175
120
176
summary(run1)
177
+
}
121
178
```
122
179
123
180
As you can see the model was unsuccessful because it was not identified. But when we add another group, so that the model is identified, the model now fits.
124
181
125
182
```{r}
183
+
if (!requireNamespace("EasyMx", quietly = TRUE)) {
184
+
print("Please install EasyMx to run the model fitting examples.")
0 commit comments