Skip to content

Commit 5cb85bb

Browse files
committed
change default max_length
set to Inf instead of 1, any limit now has to be specified
1 parent bbb1886 commit 5cb85bb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

R/entity_class.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ entity<-setClass(
3636
description='no description provided',
3737
value='',
3838
type='character',
39-
max_length=1
39+
max_length=Inf
4040
),
4141
validity = function(object) {
4242
check_length=length(value(object)) <= max_length(object)
@@ -83,9 +83,6 @@ setMethod(f="initialize",
8383
.Object@value=new(.Object@type)
8484
}
8585
}
86-
if ((.Object@type %in% c('data.frame','formula','matrix')) && !('max_length' %in% names(L))) {
87-
.Object@max_length=Inf
88-
}
8986

9087
validObject(.Object)
9188
return(.Object)

0 commit comments

Comments
 (0)