2

I'm following the instructions in this post

Y Axis is cut off using Chartseries in R

to change the chartSeries function in quantmod.

But when I touch the file at all using FixInNameSpace:

fixInNamespace(x = "chartSeries.chob", pos = as.environment("package:quantmod"))

(even if I don't edit it at all)

.. I then get

Error in chartSeries.chob() : could not find function "chart.layout"

when I call chartSeries.

FXQuantTrader
  • 6,821
  • 3
  • 36
  • 67
Charles Stangor
  • 292
  • 7
  • 21
  • Sorry for being a nudge. I tried to do it. Thanks for the advice FXQuant – Charles Stangor Mar 25 '17 at 23:13
  • What you're describing works fine for me. Can you be a bit more specific about how to reproduce your problem? `library(quantmod); getSymbols("AAPL"); fixInNamespace(x = "chartSeries.chob", pos = as.environment("package:quantmod"));` .. then add a print statement, then call `chartSeries(AAPL)` works fine for me (testing from within Rstudio) – FXQuantTrader Mar 26 '17 at 02:12
  • Have you tried doing simply these changes from a fresh restart of R and a clean workspace? – FXQuantTrader Mar 26 '17 at 02:12
  • clean start of RStudio, then:rm(list = ls()) library(quantmod); getSymbols("AAPL"); fixInNamespace(x = "chartSeries.chob", pos = as.environment("package:quantmod")) chartSeries(AAPL) …after cancelling the edit produces…. > rm(list = ls()) > library(quantmod); > getSymbols("AAPL"); [1] "AAPL" > fixInNamespace(x = "chartSeries.chob", pos = as.environment("package:quantmod")) > chartSeries(AAPL) Error in chartSeries.chob() : could not find function "chart.layout" – Charles Stangor Mar 27 '17 at 11:54
  • Same problem here. Any solutions? – tho_mi Jan 14 '18 at 16:09

0 Answers0