1- PIAttribute <- function (webId = NULL , id = NULL , name = NULL , description = NULL , path = NULL , type = NULL , typeQualifier = NULL , defaultUnitsName = NULL , dataReferencePlugIn = NULL , configString = NULL , isConfigurationItem = NULL , isExcluded = NULL , isHidden = NULL , isManualDataEntry = NULL , hasChildren = NULL , categoryNames = NULL , step = NULL , traitName = NULL , links = NULL , webException = NULL ) {
1+ PIAttribute <- function (webId = NULL , id = NULL , name = NULL , description = NULL , path = NULL , type = NULL , typeQualifier = NULL , defaultUnitsName = NULL , displayDigits = NULL , dataReferencePlugIn = NULL , configString = NULL , isConfigurationItem = NULL , isExcluded = NULL , isHidden = NULL , isManualDataEntry = NULL , hasChildren = NULL , categoryNames = NULL , step = NULL , traitName = NULL , defaultUnitsNameAbbreviation = NULL , span = NULL , zero = NULL , links = NULL , webException = NULL ) {
22 if (is.null(webId ) == FALSE ) {
33 if (is.character(webId ) == FALSE ) {
44 return (print(paste0(" Error: webId must be a string." )))
@@ -39,6 +39,11 @@ PIAttribute <- function(webId = NULL, id = NULL, name = NULL, description = NULL
3939 return (print(paste0(" Error: defaultUnitsName must be a string." )))
4040 }
4141 }
42+ if (is.null(displayDigits ) == FALSE ) {
43+ if (check.integer(displayDigits ) == FALSE ) {
44+ return (print(paste0(" Error: displayDigits must be an integer." )))
45+ }
46+ }
4247 if (is.null(dataReferencePlugIn ) == FALSE ) {
4348 if (is.character(dataReferencePlugIn ) == FALSE ) {
4449 return (print(paste0(" Error: dataReferencePlugIn must be a string." )))
@@ -92,6 +97,15 @@ PIAttribute <- function(webId = NULL, id = NULL, name = NULL, description = NULL
9297 return (print(paste0(" Error: traitName must be a string." )))
9398 }
9499 }
100+ if (is.null(defaultUnitsNameAbbreviation ) == FALSE ) {
101+ if (is.character(defaultUnitsNameAbbreviation ) == FALSE ) {
102+ return (print(paste0(" Error: defaultUnitsNameAbbreviation must be a string." )))
103+ }
104+ }
105+ if (is.null(span ) == FALSE ) {
106+ }
107+ if (is.null(zero ) == FALSE ) {
108+ }
95109 if (is.null(links ) == FALSE ) {
96110 className <- attr(links , " className" )
97111 if ((is.null(className )) || (className != " PIAttributeLinks" )) {
@@ -113,6 +127,7 @@ PIAttribute <- function(webId = NULL, id = NULL, name = NULL, description = NULL
113127 Type = type ,
114128 TypeQualifier = typeQualifier ,
115129 DefaultUnitsName = defaultUnitsName ,
130+ DisplayDigits = displayDigits ,
116131 DataReferencePlugIn = dataReferencePlugIn ,
117132 ConfigString = configString ,
118133 IsConfigurationItem = isConfigurationItem ,
@@ -123,6 +138,9 @@ PIAttribute <- function(webId = NULL, id = NULL, name = NULL, description = NULL
123138 CategoryNames = categoryNames ,
124139 Step = step ,
125140 TraitName = traitName ,
141+ DefaultUnitsNameAbbreviation = defaultUnitsNameAbbreviation ,
142+ Span = span ,
143+ Zero = zero ,
126144 Links = links ,
127145 WebException = webException )
128146 valueCleaned <- rmNullObs(value )
0 commit comments