Skip to content

Commit

Permalink
(finance/R-TTR) Updated 0.24.3 to 0.24.4, make test passed
Browse files Browse the repository at this point in the history
# Changes in 0.24.4

* Added Ethan B. Smith as a contributor. Thanks Ethan!

### NEW FEATURES

- Added a `TR()` function to calculate the true high, true low, and true
  range. Refactored `ATR()` to use the `TR()` function. Thanks to @openbmsjsc
  and Steve Bronder for the reports, and Ethan B. Smith for the PR.
  (#18, #114, #124)

### BUG FIXES

* Fix `stockSymbols()` for ticker "NA". `read.table()` converts the string "NA"
  to a missing value (NA) because `na.strings = "NA"` by default. This causes
  an issue because there's actually a company with "NA" for the ticker. (#128)

- `CTI()` did not pad its result with leading NA when the input was not
  coerced to an xts object. This was different from other TTR functions
  (e.g. `SMA()`, `RSI()`, `ROC()`). (#127)

- Removed the `VMA()` function, which was never correct because the
  results made no sense.

- Check that the `wma()` C function has enough non-NA values and throw
  an error if it doesn't. This could cause the `WMA()` function to crash
  the user's R session. (#126)

- `runMean(..., cumulative = TRUE)` didn't account for leading NA in the
  denominator. (#122)

- `runSD(x, cumulative = TRUE)` returned all NA when `x` had any leading
  NA. Thanks to Ethan B. Smith for the report. (#121)

- The `TRIX()` signal line did not use `nSig` unless `maType` was provided.
  Thanks to @SatoshiReport for the... report. (#120)

### MISCELLANEOUS

- Use symbols for native routine entry points to make them explicit and
  unable to be found accidentally. (#123)
  • Loading branch information
mef committed Jan 4, 2025
1 parent eb0e513 commit e805720
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
13 changes: 11 additions & 2 deletions finance/R-TTR/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.5 2022/05/29 00:46:45 wen Exp $
# $NetBSD: Makefile,v 1.6 2025/01/04 13:49:52 mef Exp $

R_PKGNAME= TTR
R_PKGVER= 0.24.3
R_PKGVER= 0.24.4
CATEGORIES= finance

MAINTAINER= minskim@NetBSD.org
Expand All @@ -11,6 +11,15 @@ LICENSE= gnu-gpl-v2
DEPENDS+= R-zoo>=1.8.6:../../math/R-zoo
DEPENDS+= R-curl>=4.0:../../www/R-curl

TEST_DEPENDS+= R-RUnit-[0-9]*:../../devel/R-RUnit
TEST_DEPENDS+= R-quantmod-[0-9]*:../../finance/R-quantmod

TEST_DEPENDS+= tex-ec-[0-9]*:../../fonts/tex-ec
TEST_DEPENDS+= tex-inconsolata-[0-9]*:../../fonts/tex-inconsolata
TEST_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
TEST_DEPENDS+= tex-url-[0-9]*:../../print/tex-url
TEST_DEPENDS+= tex-xkeyval-[0-9]*:../../print/tex-xkeyval

USE_LANGUAGES= c fortran

.include "../../math/R/Makefile.extension"
Expand Down
8 changes: 4 additions & 4 deletions finance/R-TTR/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.5 2022/05/29 00:46:45 wen Exp $
$NetBSD: distinfo,v 1.6 2025/01/04 13:49:52 mef Exp $

BLAKE2s (R/TTR_0.24.3.tar.gz) = 37f09ddd28b2d8d3094fe9ad7ece26ec3d07a89abe6f922f83fff16273094fd4
SHA512 (R/TTR_0.24.3.tar.gz) = 0911fa13164ed7883606ec7ca56e4cda43e2f1eb5c6ae6cb418606df6f9e55b78dcca1ba4717fdbce1006e313e25694935735029ed69e9cdfc060cf441fc207f
Size (R/TTR_0.24.3.tar.gz) = 317338 bytes
BLAKE2s (R/TTR_0.24.4.tar.gz) = 700d17e934b059a1a1b6abe854a7a1a301dfdc1541492fab0f9ccb52a2c116f3
SHA512 (R/TTR_0.24.4.tar.gz) = 9018a79eaf8ecdb216443824b454fab35a37974ec4340d2b235a1616a16482c5560a8dfa881b7b88f8af89bd1d325f46ffd54cf81b81f97600969ef750b4a20b
Size (R/TTR_0.24.4.tar.gz) = 318965 bytes

0 comments on commit e805720

Please sign in to comment.