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
{{ message }}
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
if (!is.null(this_object$`{{baseName}}`) &&!(this_object$`{{baseName}}` %in% c({{#_enum}}"{{{.}}}"{{^-last}}, {{/-last}}{{/_enum}}))) {
234
+
stop(paste("Error! \"", this_object$`{{baseName}}`, "\" cannot be assigned to `{{baseName}}`. Must be {{#_enum}}\"{{{.}}}\"{{^-last}}, {{/-last}}{{/_enum}}.", sep = ""))
235
+
}
236
+
{{/isEnum}}
222
237
self$`{{name}}` <- this_object$`{{baseName}}`
223
238
{{/isPrimitiveType}}
224
239
{{^isPrimitiveType}}
@@ -340,6 +355,11 @@
340
355
{{/isContainer}}
341
356
{{^isContainer}}
342
357
{{#isPrimitiveType}}
358
+
{{#isEnum}}
359
+
if (!is.null(this_object$`{{baseName}}`) &&!(this_object$`{{baseName}}` %in% c({{#_enum}}"{{{.}}}"{{^-last}}, {{/-last}}{{/_enum}}))) {
360
+
stop(paste("Error! \"", this_object$`{{baseName}}`, "\" cannot be assigned to `{{baseName}}`. Must be {{#_enum}}\"{{{.}}}\"{{^-last}}, {{/-last}}{{/_enum}}.", sep = ""))
0 commit comments