From 8f40766c361c54b01071060176fde42c6f77406c Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:28:06 +0100 Subject: [PATCH] launch oanda_studio() using mirai more efficiently --- R/oanda.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/oanda.R b/R/oanda.R index bca1b470..27089d80 100644 --- a/R/oanda.R +++ b/R/oanda.R @@ -584,7 +584,8 @@ oanda_studio <- function(instrument = "USD_JPY", isTRUE(new.process) && { mc <- match.call() mc[["new.process"]] <- NULL - return(invisible(mirai::mirai(mc, oanda_studio = oanda_studio))) + mc[[1]] <- quote(ichimoku::oanda_studio) + return(invisible(mirai::mirai(mc))) } if (!missing(instrument)) instrument <- sub("-", "_", toupper(force(instrument)), fixed = TRUE) granularity <- match.arg(granularity, c("D", "W", "M",