powered by
Check the data item to ensure that it is a valid request
check_data_item( data_item, type = c("any", "B Flow", "Legacy", "REMIT"), silent = FALSE )
character; the data item to check
character; the type of data_item - one of "B Flow", "Legacy", or "REMIT" or "any" for any type
boolean; whether to show a warning if not a valid data item
boolean: returns true if data_item is valid, false if it is not
# NOT RUN { check_data_item("B1720", "B Flow") #valid check_data_item("B1720", "Legacy") #invalid - incorrect type check_data_item("B1111", "REMIT") #invalid - incorrect data item and type # }
Run the code above in your browser using DataLab