Closed dkibalnikov closed 1 year ago
i have same problem on windows
getSymbols('Сбербанк',src='Mfd')
No encoding supplied: defaulting to UTF-8.
No encoding supplied: defaulting to UTF-8.
Error in `[.data.frame`(fr, , (5:10)) : undefined columns selected
In addition: There were 27 warnings (use warnings() to see them)
getSymbols('LKOH',src='Finam')
trying URL 'https://www.finam.ru/cache/N72Hgd54/icharts/icharts.js'
downloaded 1.2 MB
Error in readLines(con = tmp, warn = FALSE, encoding = "UTF-8") :
error reading from the connection
In addition: Warning message:
In readLines(con = tmp, warn = FALSE, encoding = "UTF-8") :
invalid or incomplete compressed data
I install rusquant
So, when I run this code, the problems showed that:
alpha_performance = getSymbolList(src='Rusquant', api.key=rusquant_token) Error in getSymbolList(src = "Rusquant", api.key = rusquant_token) : could not find function "getSymbolList"
Pls help me.
I install rusquant
So, when I run this code, the problems showed that:
alpha_performance = getSymbolList(src='Rusquant', api.key=rusquant_token) Error in getSymbolList(src = "Rusquant", api.key = rusquant_token) : could not find function "getSymbolList"
Issue
getSymbolList("Finam") downloads file with original "WINDOWS-1251" encoding. The function readLines(encoding = 'UTF-8') does not help since fun doc contains: "it is not used to re-encode the input. ". So, after R update up to:
getSymbolList() started to throw error:
Fix
Error could be easily fixed by forcing convert from "WINDOWS-1251" to "UTF8" via iconv() function.
Caveats