library(DatastreamR) # Login using Configuration ds = DataClient$new("Config.ini") df = tryCatch ({ ds$getDataframe('507175', list ('DCRE', 'UP', 'UPO', 'PHP', 'PLP', 'DPL#(X(VP),3)', 'DPL#(X(MV),5)', 'DPL#(X(MTBV),5)', 'DPL#(X(DY),5)', 'DPL#(X(PC),5)', 'DPL#(X(MSGSFE),5)'), kind=0) }, error = function(e) { stop (message(e)) }) print(df)