R Under development (unstable) (2024-03-11 r86098 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(DatastreamR) > > # Login using Configuration > ds = DataClient$new("Config.ini") INFO [2024-03-13 10:17:35] DSConnect.R DSConnect$getToken :Getting Token and Token Expiry INFO [2024-03-13 10:17:35] DSConnect.R DSConnect$getJsonResponse Web response received > > 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)) + }) INFO [2024-03-13 10:17:35] Datastream.R DataClient$getDataframe Getting Data INFO [2024-03-13 10:17:35] Datastream.R DataClient$getData Getting Data INFO [2024-03-13 10:17:35] DSConnect.R DSConnect$getJsonResponse Web response received Warning message: NAs introduced by coercion > print(df) [,1] Dates 2024-03-12 507175|DCRE|£ " P" 507175|UP|£ 108.2 507175|UPO|£ 104 507175|PHP|£ 108.5 507175|PLP|£ 104 507175|DPL#(X(VP),3)|£ 533.666 507175|DPL#(X(MV),5)|£ 506.3918 507175|DPL#(X(MTBV),5)|£ 1.10058 507175|DPL#(X(DY),5)|£ 0 507175|DPL#(X(PC),5)|£ 6.96934 507175|DPL#(X(MSGSFE),5)|£ -0.923 > > proc.time() user system elapsed 0.70 0.10 0.93