Skip to content

Commit 941ea15

Browse files
committed
pre-cran
1 parent 29b6eb8 commit 941ea15

File tree

10 files changed

+13
-5
lines changed

10 files changed

+13
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Package
22
Package: RTL
33
Title: Risk Tool Library - Trading, Risk, Analytics for Commodities
44
Version: 1.3.7
5-
Date: 2025-01-31
5+
Date: 2025-02-25
66
Authors@R: c(
77
person("Philippe", "Cote", , "pcote@ualberta.ca", role = c("aut", "cre")),
88
person("Nima", "Safaian", , "nima.safaian@gmail.com", role = "aut")

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export(swapInfo)
4343
export(tradeStats)
4444
export(tradeStrategyDY)
4545
export(tradeStrategySMA)
46+
import(numDeriv)
4647
import(rlang)
4748
importFrom(Rcpp,sourceCpp)
4849
importFrom(glue,glue)

R/barrierSpreadOption.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#' @param barrier_type character, "do" or "uo" (down-and-out, up-and-out)
1515
#' @param monitoring character, "continuous" or "terminal"
1616
#' @return A list containing option price and Greeks.
17+
#' @import numDeriv
1718
#' @name barrierSpreadOption
1819
#' @export barrierSpreadOption
1920

R/efficientFrontier.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@
2222
#' @export efficientFrontier
2323
#' @author Philippe Cote
2424
#' @examples
25+
#' \dontrun{
2526
#' x = RTL::fizdiffs %>% dplyr::select(date, dplyr::contains("WCS"))
2627
#' efficientFrontier(nsims = 10, x = x, expectedReturns = NULL)
2728
#' efficientFrontier(nsims = 10, x = x, expectedReturns = c(0.5,0.8,0.9))
29+
#' }
30+
2831
efficientFrontier <- function(nsims = 5000, x = RTL::fizdiffs %>% dplyr::select(date, dplyr::contains("WCS")), expectedReturns = NULL) {
2932

3033
prices <- Risk <- Return <- SharpeRatio <- desc <- NULL

data-raw/fizdiffs.feather

2.99 KB
Binary file not shown.

data/dflong.rda

6.02 KB
Binary file not shown.

data/dfwide.rda

4.12 KB
Binary file not shown.

data/fizdiffs.rda

645 Bytes
Binary file not shown.

man/barrierSpreadOption.Rd

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/efficientFrontier.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)