Skip to content

Commit

Permalink
updates look()
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Nov 2, 2023
1 parent 1ca7505 commit e88f6cf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ichimoku
Type: Package
Title: Visualization and Tools for Ichimoku Kinko Hyo Strategies
Version: 1.4.10
Version: 1.4.10.9000
Description: An implementation of 'Ichimoku Kinko Hyo', also commonly known as
'cloud charts'. Static and interactive visualizations with tools for
creating, backtesting and development of quantitative 'ichimoku' strategies.
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# ichimoku 1.4.10.9000 (development)

# ichimoku 1.4.10

* Improves handling of OANDA API errors.
Expand Down
7 changes: 4 additions & 3 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,11 @@ df_append <- function(old, new, key = "time", keep.attr = "timestamp") {
#'
#' @export
#'
look <- function(x) {
look <- function(x = .Last.value) {

lk <- .Call(ichimoku_look, if (missing(x)) .Last.value else x)
if (length(lk)) lk else invisible()
lk <- .Call(ichimoku_look, x)
is.null(lk) && return(invisible())
lk

}

Expand Down
2 changes: 1 addition & 1 deletion man/look.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e88f6cf

Please sign in to comment.