library(DatastreamR) # Login using Configuration ds = DataClient$new("Config.ini") df = tryCatch ({ ds$getDataframe('MAV#(IN:CYD,20D)|E', NULL, kind=1) }, error = function(e) { stop (message(e)) } ) print (df)