library(DatastreamR) # Login using Configuration ds = DataClient$new("Config.ini") # GET DATA into a Response Class # Note that dataToDF is FALSE here dataResp = tryCatch ({ ds$getData(tickers = "VOD,BARC", fields= list("PH", "PL"), start ='2022-07-12', end = '2022-07-13', kind = 1) }, error = function(e){ stop (message(e)) } ) # Print the Response class print (dataResp)