Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2026-07-24 Maximilian Muecke <muecke.maximilian@gmail.com>

* R/arrays.R (plotOptionSurface): Remove obsolete global variable
declarations

2026-07-23 Maximilian Muecke <muecke.maximilian@gmail.com>

* man/AffineSwaption.Rd: Correct several typos
Expand All @@ -16,6 +21,11 @@
* man/Schedule.Rd: Idem
* man/ZeroCouponBond.Rd: Idem
* man/tsQuotes.Rd: Idem
* R/affine.R: Correct typo in a warning message
* R/bermudan.R: Idem
* R/discount.R: Correct typo in an error message
* src/utils.cpp: Idem
* R/datasets.R: Correct typo in documentation

2026-07-22 Maximilian Muecke <muecke.maximilian@gmail.com>

Expand Down
2 changes: 1 addition & 1 deletion R/affine.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ AffineSwaption.default <- function(params,
# remove if search was out of bounds
expiry=expiry[expiry>0];tenor=tenor[tenor>0];vol=vol[vol>0]
if(length(expiry)<5){
warning("Insufficent vols to fit affine model")
warning("Insufficient vols to fit affine model")
return(NULL)
}
#Take 1st 5 which includes closest to initial date
Expand Down
2 changes: 0 additions & 2 deletions R/arrays.R
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,3 @@ plotOptionSurface <- function(EOres, ylabel="", xlabel="", zlabel="", fov=60) {
message("Please install the 'rgl' package before using this function.")
}
}

utils::globalVariables(c("clear3d", "bg3d", "ligh3d", "view3d", "surface3d", "text3d"))
2 changes: 1 addition & 1 deletion R/bermudan.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ BermudanSwaption.default <- function(params, ts, swaptionMaturities,
# remove if search was out of bounds
expiry=expiry[expiry>0];tenor=tenor[tenor>0];vol=vol[vol>0]
if(length(expiry)<5){
warning("Insufficent vols to fit affine model")
warning("Insufficient vols to fit affine model")
return(NULL)
}
#Take 1st 5 which includes closest to initial date
Expand Down
2 changes: 1 addition & 1 deletion R/datasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ NULL
#'
#' @name tsQuotes
#' @docType data
#' @format A series of tenors and rates approppriate for calling DiscountCurve
#' @format A series of tenors and rates appropriate for calling DiscountCurve
#' @source TBA
NULL
2 changes: 1 addition & 1 deletion R/discount.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ DiscountCurve.default <- function(params, tsQuotes, times=seq(0,10,.1),

## Check the times vector
if (!is.numeric(times) || length(times) == 0) {
stop("The times parameter must be a non-emptry numeric vector", call.=FALSE)
stop("The times parameter must be a non-empty numeric vector", call.=FALSE)
}

## Finally ready to make the call...
Expand Down
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ QuantLib::Date getFutureDate(const QuantLib::Date today,
return QuantLib::Date{today + length};
#endif
} else {
Rcpp::stop("Excactly one of 'maturity' or 'exDate' needs to be supplied and be non-null.");
Rcpp::stop("Exactly one of 'maturity' or 'exDate' needs to be supplied and be non-null.");
return QuantLib::Date(); // not reached
}
}