Giter VIP home page Giter VIP logo

riex's Issues

package ‘Riex’ is not available (for R version 3.5.2)

install.packages("Riex") is not working on containerized R with RStudio (rocker/rstudio-stable:latest).
Linux version is "x86_64-pc-linux-gnu (64-bit)". Error message: "package ‘Riex’ is not available (for R version 3.5.2)."

I would like to try the package. Any suggestions?

error using iex.company

This:

library(Riex)
sk <- "sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
x <- "TSLA"
TSLA_Co <- iex.company(x, sk)
TSLA_Co

returns:

Error: Column address2 must be a 1d atomic vector or a list
Call rlang::last_error() to see a backtrace
Error: object 'TSLA_Co' not found

Any ideas?

Cant install development version

remotes::install_github('TheEliteAnalyst/Riex') returns:

...
Installing package into ‘C:/Users/Mislav/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package 'Riex' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'xts' was built under R version 4.0.3
Execution halted
ERROR: lazy loading failed for package 'Riex'
* removing 'C:/Users/Mislav/Documents/R/win-library/4.0/Riex'
* restoring previous 'C:/Users/Mislav/Documents/R/win-library/4.0/Riex'
Error: Failed to install 'Riex' from GitHub:
  (converted from warning) installation of package ‘C:/Users/Mislav/AppData/Local/Temp/Rtmpy6mxBy/filec8c7f54e29/Riex_1.0.1.9000.tar.gz’ had non-zero exit status

Error: All columns in a tibble must be vectors.

The sample code:

library(Riex)
sk <- "KEY"
x <- "TSLA"
TSLA_Co <- iex.company(x, sk)

returns an error:

[1] "Stock Info is available in IEX"
Error: All columns in a tibble must be vectors.
x Column `employees` is NULL.
x Column `address2` is NULL.
Run `rlang::last_error()` to see where the error occurred.

iex Financials don't seem to work.

GM_bs <- iex.balance.sheet("GM", sk)
GM_IS <- iex.income("GM", sk)
GM_CF <- iex.cash.flow("GM", sk)

GM_IS <- iex.income("GM", sk)
[1] "Stock Info is available in IEX"
Error in rjson::fromJSON(url.content) : unexpected character 'T'
GM_CF <- iex.cash.flow("GM", sk)
[1] "Stock Info is available in IEX"
Error in rjson::fromJSON(url.content) : unexpected character 'T'

Off topic:
How do you add multiple tickers under one function?

Example:
iex.earnings(c("FB", "AAPL"), sk)
Does not seem to work.

[1] "Stock Info is available in IEX"
Error in rjson::fromJSON(url.content) : unexpected character 'U'
In addition: Warning message:
In if (toupper(x) %in% stocks_list == TRUE) print("Stock Info is available in IEX") else warning("Stock Info is not available in IEX") :
the condition has length > 1 and only the first element will be used

Character vectors intead of numeric

Code

Riex::iex.chart('TSLA', '1y', token)

returns warning:

[1] "Stock Info is available in IEX"
[1] "Range selected is :1y"
Warning message:
`cols` is now required when using unnest().
Please use `cols = c(Open, High, Low, Close, Volume)` 

and all character vectors inside df:

           High       Low        Close      Volume      date        
2020-01-14 "109.4820" "104.9800" "108.8510" "145306885" "2020-01-14"
2020-01-15 "107.5680" "103.3571" "105.9520" " 86844155" "2020-01-15"
2020-01-16 "102.8920" " 98.4340" " 98.7500" "108683265" "2020-01-16"
2020-01-17 "103.1340" "100.6320" "101.5220" " 68145365" "2020-01-17"
2020-01-21 "109.7160" "105.6820" "106.0500" " 89017355" "2020-01-21"
2020-01-22 "118.9000" "111.8200" "114.3780" "156845140" "2020-01-22"

Is this package under active development? Anything I tried doesn't work properly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.