Re: [R] does pdf() work inside of a function?

2019-07-28 Thread Anuj Goyal
Thanks! I think the quantmod maintainer is trying to make it a bit more functional so there are fewer side effects. I'll try to find a workaround. On Sun, Jul 28, 2019 at 4:58 PM Duncan Murdoch wrote: > > On 28/07/2019 7:40 p.m., Anuj Goyal wrote: > > Why does pdf() work outsid

[R] does pdf() work inside of a function?

2019-07-28 Thread Anuj Goyal
Why does pdf() work outside a function, but not inside it? R version 3.6.0 (2019-04-26) on Mac 10.14.5 # R --silent --vanilla < s2.r library(quantmod) options("getSymbols.warning4.0"=FALSE) options("getSymbols.yahoo.warning"=FALSE) gs <- function(f) { csvText <- "s,n\nAFL,AFLAC\nAIG,AIG" csv

Re: [R] mapply, quantmod::chart_Series, MoreArgs error with chart_pars(), chart_theme()

2019-07-28 Thread Anuj Goyal
to call mapply. > Since you are working with named arguments, you shouldn't need to include the > NULLs in the call. > Also you have provided the argument MoreArgs twice, which is what is causing > the Error message. > You can replace that call with the following: > mapply (

[R] mapply, quantmod::chart_Series, MoreArgs error with chart_pars(), chart_theme()

2019-07-27 Thread Anuj Goyal
R version 3.6.0 (2019-04-26) on Mac 10.14.5 What is the proper way to pass chart_pars() as well as chart_theme() into MoreArgs for use in quantmod::chart_Series? p.txt === s,n ABBV,AbbVie BMY,Bristol sof.r === # R --silent --vanilla < sof.r library(quantmod) options("getSymbols.warning4.

[R] quantmod::chart_Series() how to simplify x-axis labels?

2018-10-23 Thread Anuj Goyal
Is there a way to easily simplify the x-axis labels for quantmod::chart_Series() https://stackoverflow.com/questions/52910667/quantmodchart-series-how-to-simplify-x-axis-labels [[alternative HTML version deleted]] __ R-help@r-project.org mailin