backtesting-strategies icon indicating copy to clipboard operation
backtesting-strategies copied to clipboard

Error: could not find function "currency"

Open edilsonfloriano opened this issue 8 years ago • 2 comments

require(quantstrat);require(data.table) require(dplyr);require(DT) require(ggplot2);require(htmltools) require(htmlwidgets);require(knitr) require(lattice);require(pander) require(tidyr);require(webshot) sessionInfo() R version 3.2.3 (2015-12-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200) locale: [1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 LC_MONETARY=Portuguese_Brazil.1252 [4] LC_NUMERIC=C LC_TIME=Portuguese_Brazil.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] webshot_0.3.2 tidyr_0.6.0 pander_0.6.0 lattice_0.20-33 knitr_1.14 htmlwidgets_0.7 [7] htmltools_0.3.5 ggplot2_2.1.0 DT_0.2 dplyr_0.5.0 data.table_1.9.6 loaded via a namespace (and not attached): [1] Rcpp_0.12.6 digest_0.6.10 assertthat_0.1 plyr_1.8.4 chron_2.3-47 grid_3.2.3
[7] R6_2.1.3 gtable_0.2.0 DBI_0.5 magrittr_1.5 scales_0.4.0 tools_3.2.3
[13] munsell_0.4.3 colorspace_1.2-6 tibble_1.1

Sys.setenv(TZ = "UTC") currency('USD') Error: could not find function "currency"

edilsonfloriano avatar Aug 24 '16 23:08 edilsonfloriano

Probably you did not load the library "FinancialInstrument". Once this is upload you should be fine: FinancialInstrument::currency('USD')

In addition be aware if you use package "formattable". there is also a function called "currency"

herrmol avatar Aug 27 '17 16:08 herrmol

Ok.

edilsonfloriano avatar Jul 20 '20 18:07 edilsonfloriano